1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

restore slider changes

This commit is contained in:
Luke Pulverenti 2015-08-04 10:33:07 -04:00
parent 1a84e71a95
commit bbf0b4d402
2 changed files with 410 additions and 397 deletions

View file

@ -103,7 +103,7 @@ Custom property | Description | Default
class="circle"
hidden$="[[!receivedFocusFromKeyboard]]">
</paper-ripple>
<div id="sliderKnobInner" value$="[[immediateValue]]"></div>
<div id="sliderKnobInner" value$="[[pinValue]]"></div>
</div>
</div>
@ -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;
}
});