fix: typescript transpile error (#138)

development
Anatoliy Mayorov 2022-11-20 14:59:11 +03:00
parent a3102afa74
commit 53eb5c91a9
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ export const isLeftMouseButton = (evt: MouseEvent) => {
if ('buttons' in evt && (evt.type === 'mousedown' || evt.type === 'mousemove')) { if ('buttons' in evt && (evt.type === 'mousedown' || evt.type === 'mousemove')) {
return evt.buttons === 1; return evt.buttons === 1;
} }
if ('which' in evt) { if (evt.which !== undefined) {
return evt.which === 1; return evt.which === 1;
} }
return evt.button === 1; return evt.button === 1;