From fcc1746fdedae2af73a926ec2a51c3535521c7f5 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 14 Sep 2015 21:24:58 -0400 Subject: [PATCH] restore slider changes --- .../bower_components/paper-slider/paper-slider.html | 8 ++++++-- dashboard-ui/vulcanize-out.html | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/dashboard-ui/bower_components/paper-slider/paper-slider.html b/dashboard-ui/bower_components/paper-slider/paper-slider.html index fba96e753a..ca18c40e13 100644 --- a/dashboard-ui/bower_components/paper-slider/paper-slider.html +++ b/dashboard-ui/bower_components/paper-slider/paper-slider.html @@ -104,7 +104,7 @@ Custom property | Description | Default class="circle" hidden$="[[!receivedFocusFromKeyboard]]"> -
+
@@ -313,6 +313,7 @@ Custom property | Description | Default _positionKnob: function(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) + '%'; @@ -367,8 +368,11 @@ Custom property | Description | Default // update knob's position var translateX = ((this._calcRatio(immediateValue) * this._w) - this._startx); this.translate3d(translateX + 'px', 0, 0, this.$.sliderKnob); + this._setPinValue(immediateValue); + }, + _setPinValue: function (value) { + this.pinValue = value; }, - _trackEnd: function() { var s = this.$.sliderKnob.style; diff --git a/dashboard-ui/vulcanize-out.html b/dashboard-ui/vulcanize-out.html index 60248abe3f..8b7d07be99 100644 --- a/dashboard-ui/vulcanize-out.html +++ b/dashboard-ui/vulcanize-out.html @@ -17758,7 +17758,7 @@ paper-ripple {
-
+
@@ -17961,6 +17961,7 @@ paper-ripple { _positionKnob: function(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) + '%'; @@ -18015,8 +18016,11 @@ paper-ripple { // update knob's position var translateX = ((this._calcRatio(immediateValue) * this._w) - this._startx); this.translate3d(translateX + 'px', 0, 0, this.$.sliderKnob); + this._setPinValue(immediateValue); + }, + _setPinValue: function (value) { + this.pinValue = value; }, - _trackEnd: function() { var s = this.$.sliderKnob.style;