summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-17 16:50:06 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-17 16:51:24 +0200
commit12079c98ba8f15321c2c604c2bae728ec72f15ba (patch)
tree3c03a270fddc69b1717072ffca30a1d68ee3bc64 /plugingui
parent0a87eb7f746b39f0100a85cbb9dcf3a8d5c65e05 (diff)
Ignore horizontal scrolling as it breaks things otherwise.
It automatically got translated to a left click which broke the navigation in the file browser and the scrolling on the Slider.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/nativewindow_x11.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/nativewindow_x11.cc b/plugingui/nativewindow_x11.cc
index 989da4e..af2f4a6 100644
--- a/plugingui/nativewindow_x11.cc
+++ b/plugingui/nativewindow_x11.cc
@@ -351,6 +351,11 @@ void NativeWindowX11::translateXMessage(XEvent& xevent)
scrollEvent->delta = scroll * ((xevent.xbutton.button == 4) ? -1 : 1);
event_queue.push_back(scrollEvent);
}
+ else if ((xevent.xbutton.button == 6) || (xevent.xbutton.button == 7))
+ {
+ // Horizontal scrolling case
+ // FIXME Introduce horizontal scrolling event to handle this.
+ }
else
{
auto buttonEvent = std::make_shared<ButtonEvent>();