mirror of
https://github.com/simon987/sist2.git
synced 2025-04-10 14:06:45 +00:00
Fix right click on images in lightbox, update lightbox
This commit is contained in:
parent
f99ea74e3f
commit
6423643e24
Binary file not shown.
@ -77,6 +77,17 @@ export default {
|
|||||||
return listener(e);
|
return listener(e);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
document.onpointerdown = (e) => {
|
||||||
|
if (e.button === 2) {
|
||||||
|
|
||||||
|
const isLightboxOpen = this.$refs.lightbox === undefined || this.$refs.lightbox.$el.tagName === undefined;
|
||||||
|
if (isLightboxOpen) {
|
||||||
|
e.preventDefault();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
keyDownListener(e) {
|
keyDownListener(e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user