FIX: don't use Safari hack on Windows Phone

This commit is contained in:
Sam 2015-09-28 16:37:35 +10:00
parent 41c5b262b2
commit fe786dfc64

View File

@ -1,7 +1,9 @@
function applicable() {
// IE has no DOMNodeInserted so can not get this hack despite saying it is like iPhone
// This will apply hack on all iDevices
return navigator.userAgent.match(/(iPad|iPhone|iPod)/g) &&
navigator.userAgent.match(/Safari/g);
navigator.userAgent.match(/Safari/g) &&
!navigator.userAgent.match(/Trident/g);
}
// per http://stackoverflow.com/questions/29001977/safari-in-ios8-is-scrolling-screen-when-fixed-elements-get-focus/29064810