mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
1 parent
db5e9fc810
commit
dd0fba6eb4
2 files changed
+10
-7
No files matched your search
@@ -86,13 +86,15 @@ export default function gestureInit(art, events) {
|
||||
touchTarget = $progress;
|
||||
onTouchStart(event);
|
||||
});
|
||||
|
||||
events.proxy($video, 'touchstart', (event) => {
|
||||
touchTarget = $video;
|
||||
onTouchStart(event);
|
||||
});
|
||||
|
||||
events.proxy($video, 'touchmove', onTouchMove);
|
||||
|
||||
if(art.option.gesture){
|
||||
events.proxy($video, 'touchstart', (event) => {
|
||||
touchTarget = $video;
|
||||
onTouchStart(event);
|
||||
});
|
||||
events.proxy($video, 'touchmove', onTouchMove);
|
||||
}
|
||||
|
||||
events.proxy($progress, 'touchmove', onTouchMove);
|
||||
events.proxy(document, 'touchend', onTouchEnd);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user