Template:Team:HokkaidoU Japan/JS
From 2014.igem.org
(Difference between revisions)
Line 187: | Line 187: | ||
(function($){ | (function($){ | ||
var isPhantom = /Phantom/.test(navigator.userAgent), | var isPhantom = /Phantom/.test(navigator.userAgent), | ||
- | supportTouch =and( !isPhantom , "ontouchend" in document | + | supportTouch =and( !isPhantom , "ontouchend" in document) |
scrollEvent = "touchmove scroll", | scrollEvent = "touchmove scroll", | ||
// Use touch events or map it to mouse events | // Use touch events or map it to mouse events |
Revision as of 10:24, 15 September 2014