fixed default right click behaviour

This commit is contained in:
Eike Ahmels authored and Stefan Dej committed 2021-03-03 20:30:20 +01:00
1 parent ba7454da11
commit 40cc81077f
3 files changed
+3

No files matched your search

@@ -447,6 +447,7 @@
},
showContextMenu (e, item) {
if (!this.contextMenu.shown) {
e?.preventDefault();
this.contextMenu.shown = true;
this.contextMenu.x = e?.clientX || e?.pageX || window.screenX / 2;
this.contextMenu.y = e?.clientY || e?.pageY || window.screenY / 2;
+1
View File
@@ -547,6 +547,7 @@
},
showContextMenu (e, item) {
if (!this.contextMenu.shown) {
e?.preventDefault();
this.contextMenu.shown = true
this.contextMenu.x = e?.clientX || e?.pageX || window.screenX / 2;
this.contextMenu.y = e?.clientY || e?.pageY || window.screenY / 2;
+1
View File
@@ -55,6 +55,7 @@ Vue.directive('longpress', {
rotationAngle: e.touches[0].rotationAngle,
screenX: e.touches[0].screenX,
screenY: e.touches[0].screenY,
preventDefault: () => {}
});
setTimeout(() => {
el.setAttribute('style', before);