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
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user