Bug 1014 : mouseX mouseY not updated when mouse is at the lower right corner
Last modified: 2008-11-16 17:57




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

 

Reporter:
alimi
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-11-16 17:13
I am using version 0148 and have the following problem with mouse events:

When calling mouseX or mouseY within draw() or any event function such as mousePressed(),
the x and y mouse coordinates are not read to mouseX and mouseY variables when the cursor
is within 15 pixels from the lower right corner. So in a 400x400 screen the maximum values I
get to read are x=384 or y=384 rather than 399. this one is a simple demonstration:

void setup(){
size(400,400);
noFill();
stroke(255);
}

void draw(){
background(0);
ellipse(mouseX, mouseY, 20, 20);
println(mouseX+", "+mouseY);
}
Additional Comment #1 From alimi 2008-11-16 17:15
forgot to mention that the operating system is Mac OS 10.4.11
Additional Comment #2 From fry 2008-11-16 17:57
There's nothing we can do about that--it's a restriction of Java on Mac OS
X. Apple doesn't send mouse events because that's the grow box area. You
can file a bug report with Apple at bugreport.apple.com if you want them to
fix it.