Simplify type check

This commit is contained in:
Charles Gagnon
2024-04-02 11:36:05 -04:00
parent 1c6c6a07d5
commit e1666defe5
2 changed files with 1 additions and 2 deletions

View File

@@ -846,7 +846,7 @@ export const TaskbarAppIcon = GObject.registerClass({
// fixed issue #1676 by checking for button 0 or 1 to also handle touchscreen
// input, probably not the proper fix as i'm not aware button 0 should exist
// but from using this fix for months it seems to not create any issues
else if (typeof button === 'number' && (button == 0 || button == 1)) {
else if (button === 0 || button === 1) {
let now = global.get_current_time()
doubleClick = now - this.lastClick < DOUBLE_CLICK_DELAY_MS

View File

@@ -40,7 +40,6 @@ const MIN_UPDATE_MS = 250;
const T1 = 'checkGrabTimeout';
const T2 = 'limitUpdateTimeout';
const T3 = 'postAnimateTimeout';
const T4 = 'panelBoxClipTimeout';
const SIDE_CONTROLS_ANIMATION_TIME = OverviewControls.SIDE_CONTROLS_ANIMATION_TIME / (OverviewControls.SIDE_CONTROLS_ANIMATION_TIME > 1 ? 1000 : 1);