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.

Revise defaults to reduce lagging on mouse drag?

See original GitHub issue

The current default mouse drag settings have an appreciably long lag time before the image catches up with the pointer position. It trails. It doesn’t feel snappy. I can’t think of a reason why anyone would want this behavior, ever.

I think these settings are a better default:

OpenSeadragon({
  id: "osd",
  prefixUrl: "//openseadragon.github.io/openseadragon/images/",
  tileSources: "//openseadragon.github.io/example-images/duomo/duomo.dzi",
  gestureSettingsMouse: {
    flickEnabled: true,
    clickToZoom: false,
    dblClickToZoom: true
  },
  zoomPerSecond: 0.5,
  zoomPerScroll: 1.3
});

Visible in action at: http://output.jsbin.com/hikekaroxa

This is all per the (closed) discussion at #1077.

If there’s a compelling reason not to do this, you might at least add another example to the “zoom-and-pan” docs with these or similar settings.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ovanderzeecommented, Apr 14, 2020

Just to help out when you do not like OpenSeadragon’s animation effects, reading the unit tests, you should configure: OpenSeadragon({ … animationTime: 0, springStiffness: 100, … })

0reactions
iangilmancommented, Nov 15, 2016

Good point, and certainly a trend worth watching. I don’t have enough experience with touch desktop devices to know whether tapping a button would be more appealing than pinching. I do know @msalsbery has put a lot of work into making sure OSD’s touch gestures work on all touch enabled devices, and even the separate pen events (not to be confused with touch or mouse) of pen-enabled devices work. Anyway, good stuff to think about for a possible redesign of the buttons.

I see that as more of a long term change, requiring a bit more thought. Turning flickEnabled on is something we can do right away.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Windows 10 Mouse Lag - Lifewire
To change the mouse speed or sensitivity, open Settings > Devices. Select Mouse > Additional mouse options. In the Control Panel applet for ......
Read more >
Sluggish window dragging in windows 10, with Office Apps
When trying to drag any Office program open window using the mouse, the drag is very slow, severely lagging behind the mouse motion....
Read more >
Why is my Mouse Lagging? 8 Ways to Stop that
1. Update the mouse driver · 2. Enable hardware-accelerated GPU scheduling · 3. Edit USB selective suspend settings · 4. Enable / Disable...
Read more >
4 Fixes If Your Mouse Lags and Stutters in Games - MakeUseOf
Check Override high DPI scaling behavior. Set the dropdown to Application. Click OK. 2. Lower the Game's Graphical Settings. A common reason for ......
Read more >
How to Fix Mouse Lag on Windows 10 | SoftwareKeep
Method 5: Change the Palm Check threshold · Click on the Windows icon in the bottom left of your screen, then choose Settings...
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