Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Existing UserAgent test will always pass / user agent sniffing for iOS 8 issues #10

Closed
wants to merge 4 commits into from

Conversation

vpstuart
Copy link

I believe that there is a giant bug i the big IF in fixedfixed.js. Basically that each item in the condition should be anded together.

I noticed this while addressing an issue in iOS 8 that makes it always fail the scroll test, requiring a userAgent test to avoid.

Stuart Murray added 4 commits September 14, 2015 18:47
…that will never all be false

 To take a small sample:

!( ua.match( /Android 2\.[1256]/ ) && ua.indexOf( "AppleWebKit") > -1 ) ||
!( w.operamini && ({}).toString.call( w.operamini ) === "[object OperaMini]" )

This will always be true, as it is unlikely that a browser will be BOTH Android 2.0 browser and OperaMini. As a result, this if doesn't actually do anything...
@vpstuart vpstuart changed the title Existing UserAgent test will always pass as it is a big OR of things … / user agent sniffing for iOS 8 issues Existing UserAgent test will always pass / user agent sniffing for iOS 8 issues Sep 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants