fixed default right click behaviour
This commit is contained in:
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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user