Bug 740 : mouseX, mouseY, mousePressed are not updated at the right-bottom corner zone on Mac OS X
Last modified: 2008-03-04 08:59




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Classiclll
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-03-02 02:31
0135 Beta, OS 10.4.X, Apple
/* mouseX, mouseY, mousePressed are not updated at the right-bottom corner zone.
but are updated while dragging.
*/
void setup() {
size(200,200);
}
void draw() {
background(0);stroke(255);
ellipse(mouseX,mouseY,20,20);
if (mousePressed) println(mouseX+", "+mouseY);
}
Additional Comment #1 From fry 2008-03-02 10:17
i'm guessing you mean that the mouse stops updating once it leaves the
window. if you leave quickly, it will appear to stop updating mouseX/Y
30-50 pixels from the corner, since that was the last update that was
received from the os.

this is not a bug, this is simply an issue of how java cannot track mouse
movement outside the window (unless the movement is a drag, which begins
inside the window). the problem is how java interacts with the underlying
os, which cannot be guaranteed to pass mouse events when not inside the window.
Additional Comment #2 From Classiclll 2008-03-04 06:18
>30-50 pixels from the corner
yes,
but
occurs with a slow move and within the window.
on the other hand
with dragging, always and anywhere updated even if the mouse is out of the window.
Additional Comment #3 From fry 2008-03-04 07:39
you can thank steve jobs for that. on os x, it's not updating in the
additional 10ish pixel square area where the grow box normally resides.

file a bug with apple (bugreporter.apple.com) if you want to see that change.
Additional Comment #4 From Classiclll 2008-03-04 08:57
ok
i will post this bug report on bugreporter.apple.com
Additional Comment #5 From Classiclll 2008-03-04 08:59
ok
i will post this bug report on bugreporter.apple.com