From bbf0b4d40206ad577c8fc196c747273b1c2a3114 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 4 Aug 2015 10:33:07 -0400 Subject: [PATCH] restore slider changes --- .../paper-slider/paper-slider.html | 7 +- dashboard-ui/vulcanize-out.html | 800 +++++++++--------- 2 files changed, 410 insertions(+), 397 deletions(-) diff --git a/dashboard-ui/bower_components/paper-slider/paper-slider.html b/dashboard-ui/bower_components/paper-slider/paper-slider.html index 363ec7e571..d619035807 100644 --- a/dashboard-ui/bower_components/paper-slider/paper-slider.html +++ b/dashboard-ui/bower_components/paper-slider/paper-slider.html @@ -103,7 +103,7 @@ Custom property | Description | Default class="circle" hidden$="[[!receivedFocusFromKeyboard]]"> -
+
@@ -311,6 +311,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) + '%'; @@ -365,6 +366,7 @@ 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); }, _trackEnd: function() { @@ -477,6 +479,9 @@ Custom property | Description | Default this.decrement(); } this.fire('change'); + }, + _setPinValue: function (value) { + this.pinValue = value; } }); diff --git a/dashboard-ui/vulcanize-out.html b/dashboard-ui/vulcanize-out.html index 90c8c352c4..54c8f8297b 100644 --- a/dashboard-ui/vulcanize-out.html +++ b/dashboard-ui/vulcanize-out.html @@ -16782,7 +16782,7 @@ iron-selector:not(.narrow-layout) #main ::content [paper-drawer-toggle] { - -