Pressing/releasing <Ctrl> should stop scroll inertia
@andersk
Submitted by Anders Kaseorg Link to original bug (#731670)
Description
Using a quick two-finger scrolling gesture causes the document to go flying around after my fingers leave the touchpad, as if by momentum, before it slowly coasts to a stop. Cool.
But if I press Ctrl during this scroll coasting animation, it abruptly changes from scrolling to zooming. Since I never had Ctrl down while my finger was on the touchpad, this is completely unexpected.
Same thing if I release Ctrl during zoom coasting. To fix this, pressing or releasing Ctrl should cause the animation to immediately stop.
Other keys should also stop the animation: at least the scrolling shortcuts Up, Down, Left, Right, PgUp, PgDn, Space, Enter. Perhaps all keys should, to be safe.
(Before Evince had client-side gesture scrolling, this was reported as https://bugs.freedesktop.org/show_bug.cgi?id=38909 and various duplicates. But now that it does and the same bug was reimplemented client-side, I think it’s no longer Xorg’s fault.)
Version: 3.10.x