Only scroll/pin section on left-click
To prevent a right-click on the Info section (which has no context menu) from scrolling to it, along with other weirdness.
This commit is contained in:
parent
c16a2d4b05
commit
e4b329bffc
1 changed files with 4 additions and 0 deletions
|
@ -187,6 +187,10 @@
|
|||
toolbarbutton.parentElement.classList.toggle('pinnable', pinnable);
|
||||
|
||||
toolbarbutton.addEventListener('click', (event) => {
|
||||
if (event.button !== 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (event.detail) {
|
||||
case 1:
|
||||
this.scrollToPane(pane, 'smooth');
|
||||
|
|
Loading…
Reference in a new issue