|
|
|
@ -99,7 +99,7 @@ makeDragable('#shell_03header', '#shell_03')
|
|
|
|
|
} else if(x.type=="mousemove") {
|
|
|
|
|
dragObj2.style.left = x.clientX-xOffset2 +"px"; // adjust location of dragged object so doesn't jump to mouse position
|
|
|
|
|
dragObj2.style.top = x.clientY-yOffset2 +"px";
|
|
|
|
|
} else if(e.type=="touchmove") {
|
|
|
|
|
} else if(x.type=="touchmove") {
|
|
|
|
|
dragObj2.style.left = x.targetTouches[0].clientX-xOffset2 +"px"; // adjust location of dragged object so doesn't jump to mouse position
|
|
|
|
|
dragObj2.style.top = x.targetTouches[0].clientY-yOffset2 +"px";
|
|
|
|
|
}
|
|
|
|
@ -109,8 +109,8 @@ makeDragable('#shell_03header', '#shell_03')
|
|
|
|
|
document.onmouseup = function(x) {
|
|
|
|
|
if (dragObj2) {
|
|
|
|
|
dragObj2 = null;
|
|
|
|
|
window.removeEventListener('mousemove', dragObject, true);
|
|
|
|
|
window.removeEventListener('touchmove', dragObject, true);
|
|
|
|
|
window.removeEventListener('mousemove', dragObject2, true);
|
|
|
|
|
window.removeEventListener('touchmove', dragObject2, true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|