This is a continuation of my post yesterday on almost the same topic. Having failed to handle com.google.gwt.event.dom.client.TouchMove I attempted to use Hammer GWT. Pretty much this also failed me. I could see it handling org.geomajas.hammergwt.client.event.EventType.TAP, org.geomajas.hammergwt.client.event.EventType.SWIPE, org.geomajas.hammergwt.client.event.EventType.SWIPERIGHT, org.geomajas.hammergwt.client.event.EventType.SWIPERIGHT and occasionally org.geomajas.hammergwt.client.event.EventType.DOUBLETAP. So, I'm pretty much in the same soup as I was before. Here's the sample code.
As in my earlier post I'm using browsers like Chrome, Firefox, Duck Duck Go, Bravo, Opera, and Opera Mini on my Pixel 2 and Samsung Galaxy Tab A.
-- import staticorg.geomajas.hammergwt.client.event.EventType.*;
HammerTime hammerTime = HammerGwt.create(drawingPaper);HammerGwt.on(hammerTime, new HammerHandler() {
@Override public void onHammerEvent(NativeHammerEvent event) { EventType eventType = event.getType(); MaterialToast.fireToast(eventType.toString(), 5000); }}, DOUBLETAP, DRAG, DRAGDOWN, DRAGEND, DRAGLEFT, DRAGRIGHT, DRAGSTART, DRAGUP, GESTURE, HOLD, PINCH, PINCHIN, PINCHOUT, RELEASE, ROTATE, SWIPE, SWIPEDOWN, SWIPELEFT, SWIPERIGHT, SWIPEUP, TAP, TOUCH, TRANSFORM, TRANSFORMEND, TRANSFORMSTART);
As in my earlier post I'm using browsers like Chrome, Firefox, Duck Duck Go, Bravo, Opera, and Opera Mini on my Pixel 2 and Samsung Galaxy Tab A.
Any suggestions would be very much appreciated.
Thank You
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/f76f6355-d342-4d8e-8699-83f5e16273eb%40googlegroups.com.
No comments:
Post a Comment