mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Simplify type check
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user