On Thu, 26 Mar 2026 12:24:48 GMT, Renjith Kannath Pariyangad <[email protected]> wrote:
> Hi Reviewers, > > Problem: Double tap generates WM_LBUTTONDOWN, WM_MOUSEMOVE, and WM_LBUTTONUP > messages in response to actions on a primary touch point. [Which is document > here](https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-touchinput). > > > Solution: Skip drag/mouse move in case of touch and withing delta. > > Please review and let me know your suggestions. > > Regards, > Renjith. Looks good to me. I'll test the fix on a touch-screen device. src/java.desktop/windows/native/libawt/windows/awt_Component.cpp line 2474: > 2472: * actually happened -- Windows sends a WM_MOUSEMOVE in case the > 2473: * app wants to modify the cursor. > 2474: * Skip sending a mouse move event during a double-tap if the > movement is within the defined delta threshold Suggestion: * Skip sending a mouse move event during a double-tap * if the movement is within the defined delta threshold. Wrap the long line. ------------- PR Review: https://git.openjdk.org/jdk/pull/30450#pullrequestreview-4023770078 PR Review Comment: https://git.openjdk.org/jdk/pull/30450#discussion_r3003305608
