about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-03-13 10:16:12 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-03-13 10:16:12 +0300
commitcc2d4dac331b4e437625b0dcac383c16bcf4d7b0 (patch)
tree0b4ef823dfd6955802d0ca944aa2ec2c52d67871
parentf5e0ea92ee42673bad559341c56b67846b1b1998 (diff)
downloadthe-epube-cc2d4dac331b4e437625b0dcac383c16bcf4d7b0.tar.gz
the-epube-cc2d4dac331b4e437625b0dcac383c16bcf4d7b0.tar.xz
add a comment
-rw-r--r--js/reader.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/reader.js b/js/reader.js
index 45dd830..53edc25 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -67,6 +67,8 @@ const Reader = {
 
 		Reader.Loader.init();
 	},
+	// another method, maybe use this: window.matchMedia("(pointer: coarse)").matches
+	// https://stackoverflow.com/questions/4817029/whats-an-optimal-or-efficient-way-to-detect-a-touch-screen-device-using-javas
 	isTouchDevice: function() {
 		return (('ontouchstart' in window) ||
 			(navigator.maxTouchPoints > 0) ||