aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform/emscripten
diff options
context:
space:
mode:
authorRobert Knight <robert.knight@mendeley.com>2015-06-28 22:09:26 +0100
committerRobert Knight <robert.knight@mendeley.com>2015-06-28 22:09:26 +0100
commitedc95d554dd530a810240261d44013f39bef1c6d (patch)
tree5601865abe34b49a71696881eeb21697439c245c /src/platform/emscripten
parentcb08d9b05bb904e82a44bc67c818af9ba8a94568 (diff)
downloadglutin-edc95d554dd530a810240261d44013f39bef1c6d.tar.gz
glutin-edc95d554dd530a810240261d44013f39bef1c6d.zip
X11 - Ignore scroll events that happen outside of Glutin windows
Scroll deltas are calculated in X11 by comparing the current and previous absolute values for the scroll axis when a scroll motion event is received. If the user scrolls whilst the cursor is outside of the window then an incorrect delta is reported when the cursor re-enters the window. Fix this by resetting the last-seen axis values whenever the cursor re-enters the window.
Diffstat (limited to 'src/platform/emscripten')
0 files changed, 0 insertions, 0 deletions