"Smudge" factor on Mac OSX mouse events?
Laird Nelson
ljnelson at gmail.com
Tue Jun 24 02:03:06 UTC 2025
(Disclaimer: I happen to work for Oracle but this has nothing to do with my
job.)
I have been having trouble double-clicking things with my Apple Magic Mouse
on my M1 Mac when running (Swing-based) Netbeans (see
https://github.com/apache/netbeans/issues/8609 and the inciting discussion
at https://github.com/apache/netbeans/discussions/8580). I noticed that
perhaps (?) this is due to the lack of a "smudge factor" correcting for
inadvertent tiny mouse motion events while double clicking. It seems,
perhaps, that the Magic Mouse is very finicky in this area where the
built-in Mac trackpad is not.
At any rate, the XWindows toolkit has this:
https://github.com/openjdk/jdk/blob/master/src/java.desktop/unix/classes/sun/awt/X11/XWindow.java#L71-L75
But perhaps (?) the analogous Mac OSX area does not:
https://github.com/openjdk/jdk/blob/master/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java#L71-L79
and it seems like this might result in the observed behavior.
Is this a bug or works-as-it-does?
Best,
Laird
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20250623/86d1e80d/attachment-0001.htm>
More information about the client-libs-dev
mailing list