Using Useragent to test whether touch was enabled was not realiable

using !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch); instead