Fixed Chrome: XenForo.isTouchBrowser returns true

Karelke

Well-known member
I'm currently not seeing the XenForo tooltips on the forum index:

xenforo-1.webp
So I did some testing, and XenForo.isTouchBrowser() (this function activates the tooltips when you're not using a touch browser) returns true in the console:

xenforo-2.webp

I'm using Chrome 17 dev (17.0.938.0). I known, this is an unstable release but it looks like Chrome implemented touch events: http://code.google.com/p/chromium/issues/detail?id=100269
So this function won't work in the next stable release anyway.

xenforo-3.webp
 
Why not use the useragent to detect "mobile/touch" browser? If someone uses a touch-screen attached to a normal pc,
(this is imho more rare, than using chrome *g*) it would be more useful for him to fake a "tablet browser" to retrieve touch-optimised webpages
in general.
 
Top Bottom