Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

artplayer-plugin-danmuku设置菜单中的滑块支持移动端拖动 #864

Open
WhiteSevs opened this issue Nov 10, 2024 · 0 comments
Open

Comments

@WhiteSevs
Copy link

WhiteSevs commented Nov 10, 2024

PixPin_2024-11-10_12-59-31

this.art.proxy(container, 'click', (event) => {
updateLeft(event);
});
this.art.proxy(container, 'mousedown', (event) => {
isDroging = event.button === 0;
});
this.art.on('document:mousemove', (event) => {
if (isDroging) {
updateLeft(event);
}
});
this.art.on('document:mouseup', (event) => {
if (isDroging) {
isDroging = false;
updateLeft(event);
}
});

发现只支持了mouse事件,希望能支持下touch事件,方便在移动端拖动

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant