]> git.proxmox.com Git - mirror_qemu.git/commit - ui/gtk.c
ui: don't send any event if delta_y == 0
authorSergio Lopez <slp@redhat.com>
Mon, 4 Feb 2019 12:20:43 +0000 (13:20 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 5 Feb 2019 08:52:36 +0000 (09:52 +0100)
commita0fbb9a8bc600063540443258c66c31f31048008
tree676a89415bf30d408d91e615a70947a1c5c3ff23
parent09bd7ba9f5f7bd1c0cf62ba89731ae3cc6d1c72e
ui: don't send any event if delta_y == 0

When the user raises their fingers from the touchpad, we may receive a
GDK_SMOOTH_SCROLL event with delta_y == 0. Avoid generating a WHEEL_UP
event in this situation.

Signed-off-by: Sergio Lopez <slp@redhat.com>
Message-id: 20190204122043.43007-1-slp@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk.c