@Override public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) { return addDomHandler(handler, TouchMoveEvent.getType()); }
private static void initMobile() { // Prevent window scrolling RootPanel.get().addDomHandler(new TouchMoveHandler() { public void onTouchMove(TouchMoveEvent e) { e.preventDefault(); } }, TouchMoveEvent.getType()); Window.scrollTo(0, 1); new Timer() { public void run() { Window.scrollTo(0, 1); } }.schedule(1000); // Determine current window orientation if (getWindowHeight() < getWindowWidth()) { windowOrientation = "landscape"; } // Create a native orientation change handler as resize handler isn't reliable on iOS 3.x addNativeOrientationHandler(); // If Apple device then check if loaded from bookmark if (!isBookmarked()) { Window.alert("Please add this page to your Home Screen to view in fullscreen!"); } }
public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) { return addDomHandler(handler, TouchMoveEvent.getType()); }
@Override public com.google.gwt.event.shared.HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) { return this.addDomHandler(handler, TouchMoveEvent.getType()); }
@Override public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) { return this.addDomHandler(handler, TouchMoveEvent.getType()); }
@Override public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) { return viewport.addTouchMoveHandler(handler); }