summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/node.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2018-09-11 19:27:52 +0000
committerEduard Braun <eduard.braun2@gmx.de>2018-09-11 20:00:27 +0000
commit414e974ae35c3649db8426147efec31215a5c45a (patch)
treeafa07279df47d7c81ee3aac9520fab42f8513473 /src/ui/tool/node.cpp
parentSupport smooth scrolling (part 1) (diff)
downloadinkscape-414e974ae35c3649db8426147efec31215a5c45a.tar.gz
inkscape-414e974ae35c3649db8426147efec31215a5c45a.zip
Support smooth scrolling (part 2)
Fix scrolling when smooth scrolling is enabled / allow to scroll smoothly for: - canvas palette - node selection in path tool - selection cycling in select tool while holding Alt key - spraying in spray tool with mouse wheel - adjusting color by scrolling in lower left stroke/fill fields
Diffstat (limited to 'src/ui/tool/node.cpp')
-rw-r--r--src/ui/tool/node.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/tool/node.cpp b/src/ui/tool/node.cpp
index 9223b44de..49ee0cb1d 100644
--- a/src/ui/tool/node.cpp
+++ b/src/ui/tool/node.cpp
@@ -980,7 +980,11 @@ bool Node::_eventHandler(Inkscape::UI::Tools::ToolBase *event_context, GdkEvent
dir = 1;
} else if (event->scroll.direction == GDK_SCROLL_DOWN) {
dir = -1;
- } else break;
+ } else if (event->scroll.direction == GDK_SCROLL_SMOOTH) {
+ dir = event->scroll.delta_y > 0 ? -1 : 1;
+ } else {
+ break;
+ }
if (held_control(event->scroll)) {
_linearGrow(dir);
} else {