mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Bugfix: MouseEvent.which is not reliable
This commit is contained in:
parent
56df186e8d
commit
5601e100d9
3 changed files with 3 additions and 4 deletions
|
|
@ -152,7 +152,7 @@
|
|||
if (e && target) {
|
||||
let evt = new Event(type, {bubbles:true,cancelable:true});
|
||||
evt.button = 0;
|
||||
evt.which = evt.buttons = 1;
|
||||
evt.buttons = 1;
|
||||
// copy event properties into new event
|
||||
['altKey','ctrlKey','metaKey','shiftKey'].forEach(k => evt[k] = e[k]);
|
||||
let src = e.touches ? e.touches[0] : e;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue