How to bind Touch Events with GWTQuery?

23 views
Skip to first unread message

confile

unread,
Dec 12, 2014, 6:27:41 PM12/12/14
to gwtq...@googlegroups.com

To bind events like click with GQuery you can do something like:

@UiField
Element myButton;

... 

$(myButton).on("click", new Function() {
  @Override
  public void f() {
    // event is triggered
  }
}

What I need is support for touch events like Tap as it was implemented in MGWT. In MGWT you can use a TouchPanel to get a tap event like this:

@UiField
TouchPanel panel;

...

panel.addTapHandler(...);

Is there a way to bind a tap event with GQuery as it is done for the TouchPanel?

Reply all
Reply to author
Forward
0 new messages