[gnome-shell] slider: Don't hardcode scroll interval for smooth scrolling
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] slider: Don't hardcode scroll interval for smooth scrolling
- Date: Sat, 10 Jan 2015 13:56:44 +0000 (UTC)
commit e3a8a284a4f69e4bcd324acf5e537d057e7c6785
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sat Jan 10 13:12:48 2015 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/slider.js b/js/ui/slider.js
index 383dca4..8844d9a 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]