changeset 1172:ba379b4d4555 3.0-integration

Always accept wheel events
author Chris Cannam
date Wed, 30 Nov 2016 10:54:16 +0000
parents 84042e8c3c03
children db90fee630bc
files view/Pane.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/view/Pane.cpp	Mon Nov 28 14:39:59 2016 +0000
+++ b/view/Pane.cpp	Wed Nov 30 10:54:16 2016 +0000
@@ -2271,6 +2271,8 @@
 {
     cerr << "wheelEvent, delta " << e->delta() << ", angleDelta " << e->angleDelta().x() << "," << e->angleDelta().y() << ", pixelDelta " << e->pixelDelta().x() << "," << e->pixelDelta().y() << ", modifiers " << e->modifiers() << endl;
 
+    e->accept(); // we never want wheel events on the pane to be propagated
+    
     int dx = e->angleDelta().x();
     int dy = e->angleDelta().y();