• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Chrome: XenForo.isTouchBrowser returns true

Karelke

Active member
#1
I'm currently not seeing the XenForo tooltips on the forum index:

xenforo-1.PNG
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.PNG

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.PNG
 
#3
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.