@Override public boolean onSingleTap(MotionEvent e) { if (System.currentTimeMillis() > mLatestTap + TAP_INTERVAL) { mLatestTap = System.currentTimeMillis(); viewManager.onTap(); } return false; }
@Override public void onScroll(float scrollX, float scrollY) { viewManager.onScroll(scrollX, scrollY); /* if (Math.abs(scrollY) > Math.abs(scrollX)) { int scrollAmount = (int) scrollY; if (mWebView.getScrollY() - scrollY < 0) { scrollAmount = mWebView.getScrollY(); } mWebView.scrollBy(0, (int) scrollAmount); } */ }
@Override public boolean dispatchKeyEvent(KeyEvent event) { return viewManager.dispatchKeyEvent(event) || super.dispatchKeyEvent(event); }