Thursday, February 27, 2014

Re: Chrome Touch Emulation and GWT

  Have you try run code in SuperDevMode? This shoud work. I also have previous problems with Chrome Hosted mode in Touch Event emulator. 


On Wednesday, February 19, 2014 5:12:52 PM UTC+1, Alexander Zbiek wrote:
Hi all,
hope it is not wrong to post a question here.

I have a problem with touch events when emulated via the Chrome Emulation. I have a simple Canvas with an added Touch Handler:

     final Canvas ca=Canvas.createIfSupported();
//    ca.sinkEvents(Event.TOUCHEVENTS);

.addTouchStartHandler(new TouchStartHandler() {
public void onTouchStart(TouchStartEvent event) {
// TODO Auto-generated method stub
Touch t=event.getTargetTouches().get(0);
.getContext2d().clearRect(0, 0, 800, 200);
.getContext2d().strokeText("Move "+(t.getPageX()-ca.getAbsoluteLeft())+","+(t.getPageY()-ca.getAbsoluteTop()),10,60);
("Touch move ");

It works perfect on my Nexus7 but it doesnt work on my chrome when emulating Nexus7 and touches. Other Touch web apps (nativ JavaScript ? ) work in Emulation mode. But my (working) GWT app doesnt react to the (emulated) touch events. :(

Any experiences with it?

Many thanks in advance

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment