]> sigrok.org Git - pulseview.git/commit
viewport: Allow smoother zoom using vertical scroll events
authorSylvain Munaut <redacted>
Sun, 28 May 2017 14:53:27 +0000 (16:53 +0200)
committerUwe Hermann <redacted>
Sun, 28 May 2017 15:54:02 +0000 (17:54 +0200)
commit3592f4053b1b9d96869ccfb88a09a1d493ee253f
treec7843d0741b224e81cd47280fe39bcd92f76ac68
parentadb2a97bb18d0db0c936fa90b4164c8aac18e6fe
viewport: Allow smoother zoom using vertical scroll events

The zoom supports 'double' as input type but since delta() and 120 are
integer, this wasn't used and any event with a delta lower than 120 was
ignored.

With this mod, the zoom level changes are _much_ smoother on trackpads

Signed-off-by: Sylvain Munaut <redacted>
pv/view/viewport.cpp