correctly handle additional non-left-mouse-button clicks

This commit is contained in:
Conduitry 2017-03-15 16:54:55 -04:00
parent b3d383184f
commit 74a75e0074

View File

@ -55,7 +55,7 @@ function informWatchers() {
}
function clickHandler(event) {
if (event.ctrlKey || event.metaKey || event.shiftKey || event.which === 2) {
if (event.ctrlKey || event.metaKey || event.shiftKey || event.which !== 1) {
return
}
let elm = event.target