From c6f6e0a86a38516ea569e56cc2f6b0eb343e4f3e Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Tue, 30 Jun 2015 17:46:05 +0300 Subject: [PATCH] Disabled touch for all --- app/js/lib/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/lib/config.js b/app/js/lib/config.js index 11dfb610..a59d45c1 100644 --- a/app/js/lib/config.js +++ b/app/js/lib/config.js @@ -42,7 +42,7 @@ Config.Navigator = { (navigator.userAgent || '').toLowerCase().indexOf('mac') != -1, retina: window.devicePixelRatio > 1, ffos: navigator.userAgent.search(/mobi.+Gecko/i) != -1, - touch: true,//screen.width <= 768 || ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch, + touch: screen.width <= 768 || ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch, mobile: screen.width && screen.width < 480 || navigator.userAgent.search(/iOS|iPhone OS|Android|BlackBerry|BB10|Series ?[64]0|J2ME|MIDP|opera mini|opera mobi|mobi.+Gecko|Windows Phone/i) != -1 };