Login  Register

[JOGL 661] Wrong mouseDragged event send by newt

Posted by jouvieje on Feb 07, 2012; 9:25pm
URL: https://forum.jogamp.org/JOGL-661-Wrong-mouseDragged-event-send-by-newt-tp3724002.html

I'm receiving mouseDragged events instead of mouseMoved using newt (GLWindow) after a drag as ended outside the window.

Here's the steps to reproduce:
 * Press mouse button 1 in the window
 * Drag outside the window
 * Release mouse button 1
 * Move mouse inside the window => mouseDragged received by newt (with getButton returning 1) instead of mouseMoved

So it seem as if newt has never been notified of the mouse release and still caching the mouse pressed states internally (?).
I have to press and release the mouse button to stop sending the mouseDragged events.

This bug is not showing using GLCanvas.

I'm using JOGL 627 on windows 7.
Is anyone noticed this bug yet ?
Jérôme