Strange behaviour of mouseDragged in corner
in
Programming Questions
•
1 year ago
/*
Hi,
Dragging the mouse produces points. But nothing happens in case you start at the
right hand bottom corner. The same is true for more complex actions activated by mouseDragged.
Any ideas why this happens ? The left arrow key clears points for easier testing.
Many thanks.
Jochen
*/
void setup() {
size(200, 200);
background(255);
noFill();
rect(width-16, height-16, 16, 16);
}
void draw() {
}
void mouseDragged() {
point(mouseX, mouseY);
}
void keyPressed() {
if (keyCode == LEFT) {
setup();
}
}
Hi,
Dragging the mouse produces points. But nothing happens in case you start at the
right hand bottom corner. The same is true for more complex actions activated by mouseDragged.
Any ideas why this happens ? The left arrow key clears points for easier testing.
Many thanks.
Jochen
*/
void setup() {
size(200, 200);
background(255);
noFill();
rect(width-16, height-16, 16, 16);
}
void draw() {
}
void mouseDragged() {
point(mouseX, mouseY);
}
void keyPressed() {
if (keyCode == LEFT) {
setup();
}
}
1