]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Fix touch handling when using jQuery 1775/head
authorPeter Brook <peter.d.brook@gmail.com>
Thu, 7 Mar 2013 23:18:55 +0000 (15:18 -0800)
committerPeter Brook <peter.d.brook@gmail.com>
Thu, 7 Mar 2013 23:18:55 +0000 (15:18 -0800)
commit1c21bd2b9f56fa54a8f035afaded009538371b43
treed440f5f4f6f444970d34f5bdbb9b0f4b5c37d34d
parent3442452d5cc8c079589813eb7317e6900dee5917
Fix touch handling when using jQuery

When using jQuery, events seem to get "fixed" to work around some browser bugs, but this doesn't work perfectly for touches. See (http://www.the-xavi.com/articles/trouble-with-touch-events-jquery) for more details. This meant that if someone used orbit with jQuery rather than zepto, touch handling would be broken due to e.touches being undefined.

This fixes that case.
js/foundation/foundation.orbit.js