Tuesday, December 18, 2012

Re: FastButton? Handling touch events for mobile?

The PressEvent should only fire if the touchEnd happens over the element. If I understand correctly, the event should not fire if you scroll or somehow move your finger off the target.

However, there may be a situation on browsers with the elastic scroll where you try to scroll but there is no content so the browser shows the stretch/elastic animation - so physically your finger is off of the button but the browser still registers the touchEnd as over the element. This should fire a pressEvent.

I haven't looked into what happens in this situation.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/46hqRjhER18J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment