Line 45: | Line 45: | ||
document.addEventListener('touchend',touch, false); | document.addEventListener('touchend',touch, false); | ||
var clientY_start,clientY,deltaY,mTop,clientY_end,moveY,mTop_changed,swipe,swipe_t1,swipe_t2,edgeStatus,swipeStatus,transition; | var clientY_start,clientY,deltaY,mTop,clientY_end,moveY,mTop_changed,swipe,swipe_t1,swipe_t2,edgeStatus,swipeStatus,transition; | ||
+ | var paa = document.getElementById("test"); | ||
function touch (event){ | function touch (event){ | ||
paa.innerHTML = doscroll; | paa.innerHTML = doscroll; | ||
if(doscroll){ | if(doscroll){ | ||
var touchEvent = event || window.event; | var touchEvent = event || window.event; | ||
− | + | ||
switch(touchEvent.type){ | switch(touchEvent.type){ | ||
case "touchstart": | case "touchstart": |
Revision as of 13:52, 17 July 2018