|
|
@ -86,7 +86,8 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (action === 'catch_clicks') {
|
|
|
|
if (action === 'catch_clicks') {
|
|
|
|
document.body.addEventListener('click', (event) => {
|
|
|
|
// attached to document to not interfere with svelte's event delegators that are attached to the app root (document.body)
|
|
|
|
|
|
|
|
document.addEventListener('click', (event) => {
|
|
|
|
if (event.which !== 1) return;
|
|
|
|
if (event.which !== 1) return;
|
|
|
|
if (event.metaKey || event.ctrlKey || event.shiftKey) return;
|
|
|
|
if (event.metaKey || event.ctrlKey || event.shiftKey) return;
|
|
|
|
if (event.defaultPrevented) return;
|
|
|
|
if (event.defaultPrevented) return;
|
|
|
|