Marco Herrn created BATIK-1238:
----------------------------------

             Summary: mousemove eventlistener incorrectly reports no pressed 
button
                 Key: BATIK-1238
                 URL: https://issues.apache.org/jira/browse/BATIK-1238
             Project: Batik
          Issue Type: Bug
    Affects Versions: 1.10, 1.9, 1.8
            Reporter: Marco Herrn


Eventlisteners that are registered on mousemove events only report the correct 
button when they are fired the first time.

All subsequent events report that no mouse button is pressed even though the 
mouse button was not released.
 
This is the code to request the pressed mouse button:

final DOMMouseEvent mouseEvent = (DOMMouseEvent) evt;
//cancel if no button is selected anymore
if (mouseEvent.getButton() == -1){
    ...
}

The correct behaviour would be to report the actually pressed mouse button.

The last release where this worked was 1.7.1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to