aboutsummaryrefslogtreecommitdiff
path: root/src/util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.ts')
-rw-r--r--src/util.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.ts b/src/util.ts
index 3feb419..034879e 100644
--- a/src/util.ts
+++ b/src/util.ts
@@ -32,7 +32,7 @@ export function getScrollBarWidth(){
return scrollBarWidth;
}
// Detects a touch device
-export function isTouchDevice(){
+export function onTouchDevice(){
return window.matchMedia('(pointer: coarse)').matches;
}