strict boolean return for TouchEvent

pull/7011/head
Niklas Fiekas 2020-07-17 16:26:33 +02:00
parent 66213a0fd8
commit c02a0e8eda
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function isLeftClick(e: MouchEvent): boolean {
}
function isRightClick(e: MouchEvent): boolean {
return util.isRightButton(e) || (e.ctrlKey && isLeftButton(e));
return util.isRightButton(e) || (!!e.ctrlKey && isLeftButton(e));
}
let downKey: Key | undefined;