Only resize the sidebar with the left mouse button

This commit is contained in:
Jonas Jenwald 2017-12-02 19:05:17 +01:00
parent 4894518cde
commit ac4496bcec

View File

@ -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);