Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

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

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事件,方便在移动端拖动

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

No branches or pull requests

2 participants