diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2018-09-11 19:27:52 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2018-09-11 20:00:27 +0000 |
| commit | 414e974ae35c3649db8426147efec31215a5c45a (patch) | |
| tree | afa07279df47d7c81ee3aac9520fab42f8513473 /src/ui/tools/select-tool.cpp | |
| parent | Support smooth scrolling (part 1) (diff) | |
| download | inkscape-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/tools/select-tool.cpp')
| -rw-r--r-- | src/ui/tools/select-tool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/tools/select-tool.cpp b/src/ui/tools/select-tool.cpp index 835bb6f94..92ae7558b 100644 --- a/src/ui/tools/select-tool.cpp +++ b/src/ui/tools/select-tool.cpp @@ -398,7 +398,8 @@ void SelectTool::sp_select_context_cycle_through_items(Inkscape::Selection *sele std::vector<SPItem *>::iterator next = cycling_items.end(); - if (scroll_event->direction == GDK_SCROLL_UP) { + if ((scroll_event->direction == GDK_SCROLL_UP) || + (scroll_event->direction == GDK_SCROLL_SMOOTH && scroll_event->delta_y < 0)) { if (! cycling_cur_item) { next = cycling_items.begin(); } else { |
