question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

constrainDuringPan causes jitter on mobile

See original GitHub issue

While the constrainDuringPan option stops you being able to pan the image too far away from the edges before it springs back, I would like to able to stop this behaviour completely - is this possible?

For example at the moment you can pan further left than the edge of the image, a bit of background is shown and then it springs back. I’d like the user to only be able to pan to the edge of the image and no further.

Is this possible or is there an option for this? I can’t see it myself.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:39 (24 by maintainers)

github_iconTop GitHub Comments

1reaction
gehan-hccommented, Aug 1, 2017

I’ve asked if we can put it somewhere!

0reactions
iangilmancommented, Sep 6, 2017

Well, the momentum is only on mobile because of the gesture settings. You can make it happen in desktop like so:

viewer.gestureSettingsMouse.flickEnabled = true;

That might help with debugging; sorry I didn’t mention it earlier!

And yes, it might have to do with the delta adjustment, but it might have to do with the post-drag inertia instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is jitter? Causes and Remedies for VoIP Phone Use
General audio distortion: Audio that is generally unclear or distorted is also a sign of jitter-based call disruptions. What causes jitter?
Read more >
What Is Network Jitter? Simple Ways to Lower Jitter for VoIP
Dealing with network jitter? This step-by-step guide walks you through both what is jitter and how to fix VoIP call quality issues.
Read more >
Viewport Zoom and Pan | OpenSeadragon
Constraining by Viewport Visibility as a Ratio, and Constraining During Panning. The option visibilityRatio , which is by default 0.5, ensures that you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found