This commit is contained in:
2019-07-08 15:44:06 +02:00
parent 1e17184194
commit 44a5b3385c
3 changed files with 8 additions and 12 deletions
+2 -2
View File
@@ -915,8 +915,8 @@ class Event {
// MouseEvent
const mouseEventOpts = {
screenX: window.screenX + target.offsetLeft + position.x,
screenY: window.screenY + target.offsetTop + position.y,
screenX: window.screenX + (target.offsetLeft || 0) + position.x,
screenY: window.screenY + (target.offsetTop || 0) + position.y,
clientX: rect.x + position.x,
clientY: rect.y + position.y,
ctrlKey: false,