mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
feat: 新增手势配置项,支持移动端手势事件
This commit is contained in:
1 parent
dd0fba6eb4
commit
36865f1e7e
18 files changed
+117
-70
No files matched your search
@@ -82,19 +82,19 @@ export default function gestureInit(art, events) {
|
||||
}
|
||||
};
|
||||
|
||||
events.proxy($progress, 'touchstart', (event) => {
|
||||
touchTarget = $progress;
|
||||
onTouchStart(event);
|
||||
});
|
||||
|
||||
if(art.option.gesture){
|
||||
if (art.option.gesture) {
|
||||
events.proxy($video, 'touchstart', (event) => {
|
||||
touchTarget = $video;
|
||||
onTouchStart(event);
|
||||
});
|
||||
events.proxy($video, 'touchmove', onTouchMove);
|
||||
}
|
||||
|
||||
|
||||
events.proxy($progress, 'touchstart', (event) => {
|
||||
touchTarget = $progress;
|
||||
onTouchStart(event);
|
||||
});
|
||||
|
||||
events.proxy($progress, 'touchmove', onTouchMove);
|
||||
events.proxy(document, 'touchend', onTouchEnd);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user