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

touch sliders kind of slow #11

Closed
bburdette opened this issue Jan 27, 2016 · 4 comments
Closed

touch sliders kind of slow #11

bburdette opened this issue Jan 27, 2016 · 4 comments

Comments

@bburdette
Copy link
Owner

holding down a finger and moving the slider around is pretty slow. Seems like the phone/tablet gets pretty far behind in processing touch events. Due to somewhat complicated elm touch code, sending a lot of messages, or what?

@bburdette
Copy link
Owner Author

It appears to be the case that as long as your keep moving the touch spot around, the slider never updates.

Also, simplified the touch code to only process the first touch in the list, ignoring the rest. doesn't appear to change the behavior of a single touch.

@bburdette
Copy link
Owner Author

actually, that's just in chrome. in firefox the sliders are a little slow but they do react in real time. Chrome seems to store up all the touch events and then process them all at once on touch-up. Opera has a similar behavior.

@bburdette
Copy link
Owner Author

Was checking out my old clojurescript code implementing a similar project. Its so much faster! Also works well in all 3 browsers. Going to drill down and see what's being implemented there for dealing with the touches.

@bburdette
Copy link
Owner Author

this is much better now! the resize event was firing waaayyy too often. Working pretty well on my ancient galaxy nexus.

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

1 participant