| [View Files]
Type: | Bug | Severity: | Medium | Status: | New | Status Comment: | | Title: | JavaScript: Mouse events not fully working | Version: | 3.29 | Description: | When responding to mouse event with JavaScript, there are some issues:
There are 2 cases to distinguish:
1. Tooltype CONTEXTMENURMB is set
- left and middle MB events respond correctly, including event.preventDefault()
- except double click: the pointer has to be moved between left and middle double clicks to respond correctly
- right click doesn't fire any events at all, no matter if event.preventDefault() is called or not. In any case the context menu is being displayed. Correct behaviour would be to fire the events in any case, while event.preventDefault() would prevent the context menu to be shown.
2. Tooltype CONTEXTMENURMB is not set
- left MB events respond correctly, including event.preventDefault()
- middle click doesn't fire any events at all, no matter if event.preventDefault() is called or not. In any case the context menu is being displayed. Correct behaviour would be to fire the events in any case, while event.preventDefault() would prevent the context menu to be shown.
- right click does fire the mousedown und mouseup events, but displays the context menu to matter if event.preventDefault() is called or not. Mousedown fires too late, though, click and doubleclick are not fired at all. Correct behaviour would be to fire the events in any case, while event.preventDefault() would prevent the context menu to be shown.
I wrote a small test page to check it out:
http://home.datacomm.ch/mrupp/Test/MouseTest.htm | Created: | 20100709 13:44 by mrupp | Assigned: | 19700101 01:00 to | Fixed: | 19700101 01:00 by | Closed: | 19700101 01:00 by | Comments: | 1 |
|
|