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

Smooth note drag #1009

Open
krasnoludkolo opened this issue Apr 4, 2024 · 1 comment
Open

Smooth note drag #1009

krasnoludkolo opened this issue Apr 4, 2024 · 1 comment

Comments

@krasnoludkolo
Copy link

Hello!
I'm trying to build simple note editor using abcjs.
So far when I'm dragging notes up and down, the movement is "shaky" and not smooth.
Is there anything I can do to avoid this?

@paulrosen
Copy link
Owner

I'm not sure exactly what you're doing so I can't tell. If you have a public URL that demonstrates the problem I might be able to see. But in general, if you are doing lots of processing in the foreground then the browser might not update fast enough. Also, are you doing the animation with requestAnimationFrame()? If you are doing the processing inside mousemove you might be overwhelming it.

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