Only resize the sidebar with the left mouse button
This commit is contained in:
parent
4894518cde
commit
ac4496bcec
@ -136,6 +136,9 @@ class PDFSidebarResizer {
|
||||
_boundEvents.mouseUp = this._mouseUp.bind(this);
|
||||
|
||||
this.resizer.addEventListener('mousedown', (evt) => {
|
||||
if (evt.button !== 0) {
|
||||
return;
|
||||
}
|
||||
// Disable the `transition-duration` rules when sidebar resizing begins,
|
||||
// in order to improve responsiveness and to avoid visual glitches.
|
||||
this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user