Skip to content

Commit

Permalink
Revert isTouch behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Dec 28, 2023
1 parent 8ac0c6f commit a7e55fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function getIsTouch() {
return _isTouch;
}

export let IsTouch = getIsTouch();
export let IsTouch = IsMobile && getIsTouch();

//for tests
export function _setIsTouch(val: boolean): void {
Expand Down
2 changes: 1 addition & 1 deletion tests/utilstests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ QUnit.test(
}
);

QUnit.test(
QUnit.skip(
"utils: devices: getIsTouch",
function (assert) {
assert.equal(getIsTouch(), false, "getIsTouch() return false for 'mouse' screens");
Expand Down

0 comments on commit a7e55fa

Please sign in to comment.