implement View.onInterceptTouchEvent() callback

This is needed to support nested scrolling

A second GtkEventControllerLegacy gets registerd with GTK_PHASE_CAPTURE
This commit is contained in:
Julian Winkler
2024-02-24 18:50:03 +01:00
parent c03fb93727
commit 8dafa41ea9
7 changed files with 79 additions and 8 deletions

View File

@@ -1623,4 +1623,16 @@ public class View extends Object {
}
public void removeOnAttachStateChangeListener(OnAttachStateChangeListener listener) {}
public boolean onInterceptTouchEvent(MotionEvent event) {return false;}
public boolean dispatchTouchEvent(MotionEvent event) {return false;}
public boolean canScrollHorizontally(int direction) {return false;}
protected native boolean native_getGlobalVisibleRect(long widget, Rect visibleRect);
public boolean getGlobalVisibleRect(Rect visibleRect) {
return native_getGlobalVisibleRect(widget, visibleRect);
}
}