From d1af4dc89440494bdf49e37b14a5410e7c626517 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 4 Apr 2016 15:11:36 -0400 Subject: [PATCH] update paper slider --- .../bower_components/paper-slider/paper-slider.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/bower_components/paper-slider/paper-slider.html b/dashboard-ui/bower_components/paper-slider/paper-slider.html index b190fb617..68da35c86 100644 --- a/dashboard-ui/bower_components/paper-slider/paper-slider.html +++ b/dashboard-ui/bower_components/paper-slider/paper-slider.html @@ -331,7 +331,7 @@ Custom property | Description | Default on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd"> -
+
@@ -528,7 +528,8 @@ Custom property | Description | Default }, _positionKnob: function(ratio) { - this._setImmediateValue(this._calcStep(this._calcKnobPosition(ratio))); + this._setImmediateValue(this._calcStep(this._calcKnobPosition(ratio))); + this._setPinValue(this.immediateValue); this._setRatio(this._calcRatio(this.immediateValue)); this.$.sliderKnob.style.left = (this.ratio * 100) + '%'; @@ -582,6 +583,7 @@ Custom property | Description | Default // update knob's position var translateX = ((this._calcRatio(this.immediateValue) * this._w) - this._knobstartx); this.translate3d(translateX + 'px', 0, 0, this.$.sliderKnob); + this._setPinValue(this.immediateValue); }, _trackEnd: function() { @@ -596,6 +598,9 @@ Custom property | Description | Default this.fire('change'); }, + _setPinValue: function (value) { + this.pinValue = value; + }, _knobdown: function(event) { this._expandKnob();