From 68aa3f7b1b283c7f5d3fe22f6fe1a992f09d7b32 Mon Sep 17 00:00:00 2001 From: perploug Date: Tue, 10 Dec 2013 12:15:40 +0100 Subject: [PATCH] broke touch detection, reverting --- src/Umbraco.Web.UI.Client/src/init.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/init.js b/src/Umbraco.Web.UI.Client/src/init.js index 2e43dbb93b..bc71239135 100644 --- a/src/Umbraco.Web.UI.Client/src/init.js +++ b/src/Umbraco.Web.UI.Client/src/init.js @@ -64,7 +64,6 @@ app.run(['userService', '$log', '$rootScope', '$location', 'navigationService', //check for touch device, add to global appState //var touchDevice = ("ontouchstart" in window || window.touch || window.navigator.msMaxTouchPoints === 5 || window.DocumentTouch && document instanceof DocumentTouch); - var touchDevice = true; // /android|webos|iphone|ipad|ipod|blackberry|iemobile|touch/i.test(navigator.userAgent.toLowerCase()); - + var touchDevice = /android|webos|iphone|ipad|ipod|blackberry|iemobile|touch/i.test(navigator.userAgent.toLowerCase()); appState.setGlobalState("touchDevice", touchDevice); }]); \ No newline at end of file