handle onClickListener for synthesized MotionEvents

Since synthesized events can't be handled by GTK, we also need to handle
gestures by ourself in that case.
This commit is contained in:
Julian Winkler
2025-04-18 07:21:21 +02:00
parent db29a02c73
commit bd83e211d0
3 changed files with 6 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ bool view_dispatch_motionevent(JNIEnv *env, WrapperWidget *wrapper, GtkPropagati
}
ret = false;
} else {
ret = (*env)->CallBooleanMethod(env, this, handle_cache.view.onTouchEventInternal, motion_event);
ret = (*env)->CallBooleanMethod(env, this, handle_cache.view.onTouchEventInternal, motion_event, (jboolean)(event == NULL));
}
if((*env)->ExceptionCheck(env))