Fixed #17.
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user