Fixed #17.
This commit is contained in:
Vendored
+3
-3
@@ -5459,7 +5459,7 @@
|
||||
*/
|
||||
if (nearestNode.tagName == 'svg') {
|
||||
let handler = this.tapNodes.get(nearestNode);
|
||||
console.log("Clicking beneath SVG: to be done", handler);
|
||||
console.log("Clicking near SVG: to be done", handler);
|
||||
if (this.triggerSVGClicks)
|
||||
nearestNode.dispatchEvent(new Event('click'));
|
||||
return
|
||||
@@ -7477,8 +7477,8 @@
|
||||
|
||||
// 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