mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 23:58:07 +02:00
Only resize the sidebar with the left mouse button
This commit is contained in:
parent
4894518cde
commit
ac4496bcec
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue