strict boolean return for TouchEvent
parent
66213a0fd8
commit
c02a0e8eda
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue