mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 13:21:20 -08:00
update touchmove event
This commit is contained in:
1 parent
3a3c21e059
commit
8549661327
3 files changed
+3
-3
No files matched your search
@@ -3919,7 +3919,7 @@
|
||||
events.proxy($video, 'touchmove', function (event) {
|
||||
if (event.touches.length === 1 && isDroging) {
|
||||
var clientX = event.touches[0].clientX;
|
||||
var ratioX = clamp((clientX - startX) / $video.clientWidth, -1, 1);
|
||||
var ratioX = clamp((clientX - startX) / art.width, -1, 1);
|
||||
|
||||
if (art.duration) {
|
||||
currentTime = clamp(art.currentTime + art.duration * ratioX, 0, art.duration);
|
||||
|
||||
Reference in new issue
Block a user