-
Notifications
You must be signed in to change notification settings - Fork 477
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
Delay for events on Touch Devices #33
Comments
According to Google
My temporary solution is to include FastClick in to my index.html Does anyone else think we should include something like FastClick in Framer? |
Anyone have thoughts on this? |
Hey Tyler! So, if you are building something exclusively for mobile devices, you can use the touchStart event, which fires instantly, as opposed to the click event. If you want both click and touch events, but want them to fire immediately on their respective platforms, you'll have to build in an event abstraction. Here's the general idea of how that would work: if (touchDevice()) { Events.TouchStart = "touchstart"; } else { Events.TouchStart = "mousedown"; } view.on(Events.TouchStart, function() { return console.log("Touch started"); }); |
@joshpuckett thanks! I will definitely try that out example out, because I end up using framer on web & mobile. |
Also, I already built these in (but did not publicly document them yet) On Monday, June 17, 2013, Tyler Howarth wrote:
|
Fixed with |
When testing on a computer, events are extremely responsive and fire animations immediately. When I test on a touch device the animations are delayed by a few hundred milliseconds. Is there a workaround for this?
The text was updated successfully, but these errors were encountered: