Skip to content

Commit

Permalink
[wpeview] Fix touch event type mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
zhani committed Oct 16, 2024
1 parent 948f15d commit 71788f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpeview/src/main/cpp/Runtime/WKWebView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ void JNIWKWebViewCache::nativeOnTouchEvent(JNIEnv* env, jobject /*obj*/, jlong w
wpe_input_touch_event touchEvent {
.touchpoints = touchPoints,
.touchpoints_length = static_cast<uint64_t>(pointerCount),
.type = static_cast<wpe_input_touch_event_type>(type),
.type = touchEventType,
.id = touchPoints[0].id, // Use the first touchpoint's ID
.time = static_cast<uint32_t>(time),
.modifiers = 0, // Set modifiers if any
Expand Down

0 comments on commit 71788f4

Please sign in to comment.