views:

36

answers:

1

We're developing a mobile application using GWT and are facing the following problem:

iPhone offer a long touch function to do copy&paste for all kinds of stuff. But when we're using the HTML widget or another widget that has explicit ClickHandlers, those events are not forwarded. This even occurs, when there is no clickhandler defined.

How can we monitor long touches (since there is no click/touchup, the onclick method is not being triggered) and how can we prevent the prevention of such events?

There seems to be no method for removing all events on a widget.

A: 

Does putting the widget inside of a FocusPanel work for you? The FocusPanel should recieve and fire events for all widgets inside of it.

FocusPanel f = new FocusPanel();
f.addWidget(new HTML());
f.addClickHandler(...);
Chris Smith
Nope. Does not work.
gamma