mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Merge pull request #1074 from Stremio/fix/player-slider-thumb-movement
Player: Fix Slider thumb movement
This commit is contained in:
commit
135ca80bd3
1 changed files with 2 additions and 2 deletions
|
|
@ -142,11 +142,11 @@ const Slider = ({ className, value, buffered, minimumValue, maximumValue, disabl
|
||||||
<div className={styles['layer']}>
|
<div className={styles['layer']}>
|
||||||
<div
|
<div
|
||||||
className={classnames(styles['track-after'], { [styles['audio-boost']]: audioBoost })}
|
className={classnames(styles['track-after'], { [styles['audio-boost']]: audioBoost })}
|
||||||
style={{ '--mask-width': `calc(${thumbPosition} * 100%)` }}
|
style={{ '--mask-width': `calc(${thumbPosition.toFixed(3)} * 100%)` }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles['layer']}>
|
<div className={styles['layer']}>
|
||||||
<div className={styles['thumb']} style={{ marginLeft: `calc(100% * ${thumbPosition})` }} />
|
<div className={styles['thumb']} style={{ marginLeft: `calc(100% * ${thumbPosition.toFixed(3)})` }} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue