From 414e974ae35c3649db8426147efec31215a5c45a Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Tue, 11 Sep 2018 21:27:52 +0200 Subject: 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 --- src/ui/tools/select-tool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui/tools/select-tool.cpp') 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::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 { -- cgit v1.2.3