mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
Fix mobile touchstart
This commit is contained in:
1 parent
4d1a695f33
commit
783b973fb2
4 files changed
+32
-25
No files matched your search
@@ -130,8 +130,7 @@ export default function progress(options) {
|
||||
proxy($control, 'click', (event) => {
|
||||
if (event.target !== $indicator) {
|
||||
if (art.isRotate) {
|
||||
const { clientHeight } = document.documentElement;
|
||||
const percentage = event.pageY / clientHeight;
|
||||
const percentage = event.pageY / art.height;
|
||||
const second = percentage * art.duration;
|
||||
setBar('played', percentage);
|
||||
art.seek = second;
|
||||
|
||||
Reference in new issue
Block a user