diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-03-13 10:16:12 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-03-13 10:16:12 +0300 |
| commit | cc2d4dac331b4e437625b0dcac383c16bcf4d7b0 (patch) | |
| tree | 0b4ef823dfd6955802d0ca944aa2ec2c52d67871 | |
| parent | f5e0ea92ee42673bad559341c56b67846b1b1998 (diff) | |
| download | the-epube-cc2d4dac331b4e437625b0dcac383c16bcf4d7b0.tar.gz the-epube-cc2d4dac331b4e437625b0dcac383c16bcf4d7b0.tar.xz | |
add a comment
| -rw-r--r-- | js/reader.js | 2 |
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) || |
