Sunday, September 8, 2019

Re: GWT Support for Touch Event

Jens:

I appreciate your feedback. "Touch devices usually emulate classic click / mouse move events as well" - I understood that but the touch move is not translated into a mouse move with the button down. That's the only reason I ventured into supporting touch events.

"so if you have handlers for both they might interfere each other and breaking code assumptions." - Yes, I'm aware of that. To solve it I have separate handlers which extract the position of the click/touch & current position when moving. Doing anything with those coordinates is a whole different task and handled by different methods.

"Maybe you should log all events using an event preview handler to figure out why your code does not work as expected." I did all these without any success and coming to this forum only as a last resort for help.

--v

On Sunday, September 8, 2019 at 11:39:36 AM UTC-4, Jens wrote:
Touch devices usually emulate classic click / mouse move events as well, so if you have handlers for both they might interfere each other and breaking code assumptions.

Other than that, GWT does not do any real magic when it comes to events. Touch events are handled the same as click events or other browser events.

Maybe you should log all events using an event preview handler to figure out why your code does not work as expected.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/43bd20cf-a155-4e6e-9957-83d63979b4dd%40googlegroups.com.

No comments:

Post a Comment