[jira] [Created] (BATIK-1238) mousemove eventlistener incorrectly reports no pressed button
"Marco Herrn (JIRA)" <[email protected]> Thu, 9 Aug 2018 11:20:00 +0000 (UTC)
| Newsgroups | gmane.text.xml.batik.devel |
|---|---|
| Message-ID | <[email protected]> |
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)