Fix mobile touchstart

This commit is contained in:
Harvey committed 2022-09-28 10:51:26 +08:00
1 parent 4d1a695f33
commit 783b973fb2
4 files changed
+32 -25

No files matched your search

+1 -2
View File
@@ -130,8 +130,7 @@ export default function progress(options) {
proxy($control, 'click', (event) => {
if (event.target !== $indicator) {
if (art.isRotate) {
const { clientHeight } = document.documentElement;
const percentage = event.pageY / clientHeight;
const percentage = event.pageY / art.height;
const second = percentage * art.duration;
setBar('played', percentage);
art.seek = second;