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
+3 -3
View File
@@ -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,