<html><head><style id="css_styles" type="text/css"><!--blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: center; '], li[style='text-align: right;'], li[style='text-align: right; '] { list-style-position: inside;}
body { font-family: Helvetica; font-size: 9pt; }
.quote { margin-left: 1em; margin-right: 1em; border-left: 5px #ebebeb solid; padding-left: 0.3em; }
a.em-mention[href] { text-decoration: none; color: inherit; border-radius: 3px; padding-left: 2px; padding-right: 2px; background-color: #e2e2e2; }
._em_placeholder {color: gray; border-bottom: 1px dotted lightblue;} ._em_placeholder:before{color:gray; content: '{{ ';} ._em_placeholder:after{color:gray; content: ' }}';}
--></style></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>I can’t speak to the Apple Magic Mouse specifically, but at my old job we wrote a <a href="https://github.com/mickleness/pumpernickel/blob/master/src/main/java/com/pump/awt/ClickSensitivityControl.java">work-around</a> for a very similar-sounding complaint: we received MOUSE_PRESSED and MOUSE_RELEASED events just fine, but we didn’t receive MOUSE_CLICKED events unless the mouse location stayed exactly the same.</div><div><br /></div><div>This came up because some of our users were kindergarteners, and they often lacked the fine motor schools to tap touchpads in exactly the same spot.</div><div><br /></div><div>IMO I’d also consider these complaints bugs, but I’m not an OpenJDK member and I certainly don’t have the historical knowledge that some people here might have about whether this is intentional or not. I’m curious to see what other folks say…?</div><div><br /></div><div>Regards,</div><div> - Jeremy</div>
<div x-em-replyforwardheader=""><br /></div>
<div>
<div>------ Original Message ------</div>
<div>From "Laird Nelson" <<a href="mailto:ljnelson@gmail.com">ljnelson@gmail.com</a>></div>
<div>To <a href="mailto:client-libs-dev@openjdk.org">client-libs-dev@openjdk.org</a></div>
<div>Date 6/23/2025 10:03:06 PM</div>
<div>Subject "Smudge" factor on Mac OSX mouse events?</div></div><div x-em-quote=""><br /></div>
<div id="x3f7fd9c518e743a"><blockquote cite="CAHNdxumknyBCfrv796HSC+n_88ZRq3KqYWNcKEXtYFezK_0AwQ@mail.gmail.com" type="cite" class="cite2">
<div dir="ltr"><div>(Disclaimer: I happen to work for Oracle but this has nothing to do with my job.)</div><div><br /></div><div>I have been having trouble double-clicking things with my Apple Magic Mouse on my M1 Mac when running (Swing-based) Netbeans (see <a href="https://github.com/apache/netbeans/issues/8609" class="__cef_visited">https://github.com/apache/netbeans/issues/8609</a> and the inciting discussion at <a href="https://github.com/apache/netbeans/discussions/8580">https://github.com/apache/netbeans/discussions/8580</a>). 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.</div><div><br /></div><div>At any rate, the XWindows toolkit has this: <a href="https://github.com/openjdk/jdk/blob/master/src/java.desktop/unix/classes/sun/awt/X11/XWindow.java#L71-L75" class="__cef_visited">https://github.com/openjdk/jdk/blob/master/src/java.desktop/unix/classes/sun/awt/X11/XWindow.java#L71-L75</a></div><div><br /></div><div>But perhaps (?) the analogous Mac OSX area does not: <a href="https://github.com/openjdk/jdk/blob/master/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java#L71-L79" class="__cef_visited">https://github.com/openjdk/jdk/blob/master/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java#L71-L79</a> and it seems like this might result in the observed behavior.</div><div><br /></div><div>Is this a bug or works-as-it-does?</div><div><br /></div><div>Best,</div><div>Laird</div></div>
</blockquote></div>
</body></html>