vis-network icon indicating copy to clipboard operation
vis-network copied to clipboard

Handle both mouse wheel and trackpad

Open TedDriggs opened this issue 2 years ago • 3 comments

The current code ignores magnitude differences in deltaY, resulting in an experience that is either too fast on trackpad or too slow with a mousewheel.

This change allows those to differ within a clamped range, so that one zoomSpeed value works well for both input devices.

Fixes #1882

TedDriggs avatar Jul 13 '23 13:07 TedDriggs

Looking forward to this improvement!

jeffrey-e avatar Aug 14 '23 09:08 jeffrey-e

@Thomaash could you take a look at this PR? Having a fix for this would let us remove a very clunky workaround in our app where we have to give the user a setting to tell us which input device they're using.

TedDriggs avatar Mar 12 '24 12:03 TedDriggs