feat: 新增手势配置项,支持移动端手势事件

This commit is contained in:
Harvey Zack committed 2025-03-22 11:55:09 +08:00
1 parent dd0fba6eb4
commit 36865f1e7e
18 files changed
+117 -70

No files matched your search

+7 -7
View File
@@ -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);
}
+1
View File
@@ -64,6 +64,7 @@ export default {
useSSR: b,
playsInline: b,
lock: b,
gesture: b,
fastForward: b,
autoPlayback: b,
autoOrientation: b,