Commit c5b71a0
committed
Calendar: avoid opening menu on unselected component
The javascript 'contextmenu' event is not consistent with its order. On
some machines, it is triggered right after right-click 'mousedown', on
other machines after 'mouseup'. This can lead to an unexpected
behavior, when the right-click is started outside a component and is
finished on a component. Because the selection is applied on
'mousedown', no component is selected, but the context menu of the
component is opened. This change cancels the opening of the popup window
when this case occurs.
4511161 parent bd0a7a1 commit c5b71a0
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
1562 | 1562 | | |
1563 | 1563 | | |
1564 | 1564 | | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
1565 | 1570 | | |
1566 | 1571 | | |
1567 | 1572 | | |
| |||
0 commit comments