mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 18:41:20 -08:00
1 parent
db5e9fc810
commit
dd0fba6eb4
2 files changed
+8
-5
No files matched your search
@@ -87,12 +87,14 @@ export default function gestureInit(art, events) {
|
|||||||
onTouchStart(event);
|
onTouchStart(event);
|
||||||
});
|
});
|
||||||
|
|
||||||
events.proxy($video, 'touchstart', (event) => {
|
if(art.option.gesture){
|
||||||
touchTarget = $video;
|
events.proxy($video, 'touchstart', (event) => {
|
||||||
onTouchStart(event);
|
touchTarget = $video;
|
||||||
});
|
onTouchStart(event);
|
||||||
|
});
|
||||||
|
events.proxy($video, 'touchmove', onTouchMove);
|
||||||
|
}
|
||||||
|
|
||||||
events.proxy($video, 'touchmove', onTouchMove);
|
|
||||||
events.proxy($progress, 'touchmove', onTouchMove);
|
events.proxy($progress, 'touchmove', onTouchMove);
|
||||||
events.proxy(document, 'touchend', onTouchEnd);
|
events.proxy(document, 'touchend', onTouchEnd);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ export default class Artplayer extends Emitter {
|
|||||||
useSSR: false,
|
useSSR: false,
|
||||||
playsInline: true,
|
playsInline: true,
|
||||||
lock: false,
|
lock: false,
|
||||||
|
gesture: true,
|
||||||
fastForward: false,
|
fastForward: false,
|
||||||
autoPlayback: false,
|
autoPlayback: false,
|
||||||
autoOrientation: false,
|
autoOrientation: false,
|
||||||
|
|||||||
Reference in new issue
Block a user