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 2016-01-12 13:02:46 -05:00
parent 409710f87b
commit 4747efc4eb
2 changed files with 7 additions and 1 deletions

View file

@ -331,7 +331,7 @@ Custom property | Description | Default
on-up="_resetKnob"
on-track="_onTrack"
on-transitionend="_knobTransitionEnd">
<div id="sliderKnobInner" value$="[[immediateValue]]"></div>
<div id="sliderKnobInner" value$="[[pinValue]]"></div>
</div>
</div>
@ -529,6 +529,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) + '%';
@ -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(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();

View file

@ -349,6 +349,7 @@ paper-slider {
.paper-slider-0 #sliderKnobInner.paper-slider {
background-color: #52B54B;
border-color: #52B54B;
}
.paper-slider-0 paper-ripple.paper-slider {