summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/spinbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget/spinbutton.cpp')
-rw-r--r--src/ui/widget/spinbutton.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/widget/spinbutton.cpp b/src/ui/widget/spinbutton.cpp
index 130cd6c39..3f99dd2cc 100644
--- a/src/ui/widget/spinbutton.cpp
+++ b/src/ui/widget/spinbutton.cpp
@@ -73,6 +73,9 @@ bool SpinButton::on_my_scroll_event(GdkEventScroll* event)
}
double step, page;
get_increments(step, page);
+ if (event->state & GDK_CONTROL_MASK) {
+ step = page;
+ }
double change = 0.0;
if (event->direction == GDK_SCROLL_UP) {
change = step;