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

adding grab_start and grab_end events #51

Closed
VeloeEvall opened this issue Feb 15, 2024 · 2 comments
Closed

adding grab_start and grab_end events #51

VeloeEvall opened this issue Feb 15, 2024 · 2 comments

Comments

@VeloeEvall
Copy link

VeloeEvall commented Feb 15, 2024

Hi. I'd love to have grabbing_start and grabbing_end events added to pause my audio during the time i'm holding mouse, because now when i stop moving mouse it plays my audio.
I'm not using html tag, I've created audio in js code.

@zhw2590582
Copy link
Owner

you can do this

wf.on('mousedown', () => {
// grabbing_start 
});

wf.on('mousemove', () => {
// grabbing
});

wf.on('mouseup', () => {
// grabbing_end 
});

@VeloeEvall
Copy link
Author

Ah yeah, sorry I didn't see that. Thanks a lot!

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

No branches or pull requests

2 participants