Fix DOMRect coordinates in Safari
This commit is contained in:
parent
b890e7e976
commit
10cba8d9b0
@ -137,8 +137,8 @@ export default {
|
|||||||
view: window,
|
view: window,
|
||||||
bubbles: true,
|
bubbles: true,
|
||||||
cancelable: true,
|
cancelable: true,
|
||||||
clientX: rect.x,
|
clientX: rect.left,
|
||||||
clientY: rect.y + rect.height,
|
clientY: rect.top + rect.height,
|
||||||
});
|
});
|
||||||
el.dispatchEvent(ev);
|
el.dispatchEvent(ev);
|
||||||
},
|
},
|
||||||
|
@ -35,8 +35,8 @@ const vueApp = new Vue({
|
|||||||
const rect = el.getBoundingClientRect();
|
const rect = el.getBoundingClientRect();
|
||||||
const event = new MouseEvent("click", {
|
const event = new MouseEvent("click", {
|
||||||
view: window,
|
view: window,
|
||||||
clientX: rect.x + 10,
|
clientX: rect.left + 10,
|
||||||
clientY: rect.y,
|
clientY: rect.top,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$root.$emit("contextmenu:removenetwork", {
|
this.$root.$emit("contextmenu:removenetwork", {
|
||||||
|
Loading…
Reference in New Issue
Block a user