From fd4f2f405fa19598b4ff48b938c8be6fdae95bac Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sat, 10 Jan 2015 13:12:48 +0100 Subject: [PATCH] slider: Don't hardcode scroll interval for smooth scrolling Use the SLIDER_SCROLL_STEP constant instead for consistency. https://bugzilla.gnome.org/show_bug.cgi?id=742648 --- js/ui/slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/slider.js b/js/ui/slider.js index 383dca413..8844d9abd 100644 --- a/js/ui/slider.js +++ b/js/ui/slider.js @@ -197,7 +197,7 @@ const Slider = new Lang.Class({ let [dx, dy] = event.get_scroll_delta(); // Even though the slider is horizontal, use dy to match // the UP/DOWN above. - delta = -dy / 10; + delta = -dy * SLIDER_SCROLL_STEP; } this._value = Math.min(Math.max(0, this._value + delta), 1);