Skip to content

Instantly share code, notes, and snippets.

// small fix for old safari versions compatibility
// this bug occures
// on iPhone OS since 3.2 version (iPad)
// and on iOS since 4.0 version
// as of 1.4.2 the mobile safari reports wrong values on offset()
// http://dev.jquery.com/ticket/6446
// remove once it's fixed
if (/webkit.*mobile/i.test(navigator.userAgent)