Skip to content

Commit 6c3fb5f

Browse files
author
Michael Strauß
committedJul 2, 2024
8289115: Touch events is not dispatched after upgrade to JAVAFX17+
Reviewed-by: jpereda, kcr
1 parent 1fb8755 commit 6c3fb5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎modules/javafx.graphics/src/main/native-glass/win/ViewContainer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ void NotifyTouchInput(
12111211

12121212
// Sets to 'true' if source device is a touch screen
12131213
// and to 'false' if source device is a touch pad/pen.
1214-
const bool isDirect = IsTouchEvent();
1214+
const bool isDirect = (ti->dwFlags & TOUCHEVENTF_PEN) == 0;
12151215

12161216
jint modifiers = GetModifiers();
12171217
env->CallStaticObjectMethod(gestureSupportCls,

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Jul 2, 2024

@openjdk-notifier[bot]
Please sign in to comment.