Mercurial > hg > svgui
diff view/Pane.cpp @ 1172:ba379b4d4555 3.0-integration
Always accept wheel events
author | Chris Cannam |
---|---|
date | Wed, 30 Nov 2016 10:54:16 +0000 |
parents | ee01a4062747 |
children | e0ac21f07ab0 |
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();