1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-30 19:22:11 +00:00

refactor(js): remove isTouchSupported() static function

This commit is contained in:
Julien Voisin 2025-09-09 00:41:50 +02:00 committed by GitHub
parent a60a153003
commit 645800ce3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 14 deletions

View file

@ -1230,8 +1230,10 @@ function initializeKeyboardShortcuts() {
* Initialize touch handler for mobile devices.
*/
function initializeTouchHandler() {
const touchHandler = new TouchHandler();
touchHandler.listen();
if ( "ontouchstart" in window || navigator.maxTouchPoints > 0) {
const touchHandler = new TouchHandler();
touchHandler.listen();
}
}
/**