You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
OnTouchListener: attach event controllers to WrapperWidget
otherwise, the touch event positions would depend on the scroll offset. This fixes the glitchy vertical scrolling in ViewPager
This commit is contained in:
@@ -171,7 +171,7 @@ void _setOnTouchListener(JNIEnv *env, jobject this, GtkWidget *widget, jobject o
|
||||
|
||||
JNIEXPORT void JNICALL Java_android_view_View_setOnTouchListener(JNIEnv *env, jobject this, jobject on_touch_listener)
|
||||
{
|
||||
GtkWidget *widget = GTK_WIDGET(_PTR(_GET_LONG_FIELD(this, "widget")));
|
||||
GtkWidget *widget = gtk_widget_get_parent(GTK_WIDGET(_PTR(_GET_LONG_FIELD(this, "widget"))));
|
||||
|
||||
_setOnTouchListener(env, this, widget, on_touch_listener);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user