Template:Team:HokkaidoU Japan/JS

From 2014.igem.org

(Difference between revisions)
Line 188: Line 188:
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
touchStartEvent = supportTouch ? "touchstart" : "mousedown",
touchStartEvent = supportTouch ? "touchstart" : "mousedown",

Revision as of 10:29, 15 September 2014