mirror of
https://github.com/sist2app/sist2.git
synced 2025-05-10 20:05:57 +02:00
Fix right click on images in lightbox, update lightbox
This commit is contained in:
parent
f99ea74e3f
commit
6423643e24
2 changed files with 11 additions and 0 deletions
Binary file not shown.
|
@ -77,6 +77,17 @@ export default {
|
|||
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: {
|
||||
keyDownListener(e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue