fix(tests): only override left clicks in index custom script

pull/2914/head
matejcik 1 year ago committed by matejcik
parent 35f4e1ce19
commit c6bf32eb82

@ -88,8 +88,8 @@ function findNextForHref(doc, href) {
function openLink(ev) { function openLink(ev) {
if (ev.button === 2) { if (ev.button !== 0 || ev.ctrlKey || ev.metaKey || ev.shiftKey || ev.altKey) {
// let right click through // let everything but unmodified left clicks through
return true; return true;
} }

Loading…
Cancel
Save