aboutsummaryrefslogtreecommitdiff
path: root/js/components/slider.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/slider.reel')
-rwxr-xr-xjs/components/slider.reel/slider.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/components/slider.reel/slider.js b/js/components/slider.reel/slider.js
index 57514edb..2b3ebb1a 100755
--- a/js/components/slider.reel/slider.js
+++ b/js/components/slider.reel/slider.js
@@ -150,7 +150,7 @@ var Slider = exports.Slider = Montage.create(SliderBase, {
150 clickPoint = webkitConvertPointFromPageToNode(this.element, new WebKitPoint(offset,pageY)).y; 150 clickPoint = webkitConvertPointFromPageToNode(this.element, new WebKitPoint(offset,pageY)).y;
151 } 151 }
152 this.value = (clickPoint*this._valueCoef)+this._minValue; 152 this.value = (clickPoint*this._valueCoef)+this._minValue;
153 153
154 if(!this._isMouseDown && (this._previousValue !== this._value)) 154 if(!this._isMouseDown && (this._previousValue !== this._value))
155 { 155 {
156 this._dispatchActionEvent(); 156 this._dispatchActionEvent();
@@ -197,7 +197,7 @@ var Slider = exports.Slider = Montage.create(SliderBase, {
197 draw: { 197 draw: {
198 value: function() { 198 value: function() {
199 this.setPercentValueFromValue(); 199 this.setPercentValueFromValue();
200 200
201 if(this._direction === "horizontal") 201 if(this._direction === "horizontal")
202 { 202 {
203 this.knob.style.left = this._percentValue +"%"; 203 this.knob.style.left = this._percentValue +"%";
@@ -265,7 +265,7 @@ var Slider = exports.Slider = Montage.create(SliderBase, {
265 } 265 }
266 266
267 267
268 268
269 269
270 if(this._enabled) 270 if(this._enabled)
271 { 271 {
@@ -282,8 +282,8 @@ var Slider = exports.Slider = Montage.create(SliderBase, {
282 this.value = this._minValue; 282 this.value = this._minValue;
283 } 283 }
284 } 284 }
285 285
286 } 286 }
287 } 287 }
288 288
289}); 289});