This commit is contained in:
Joseph Cheung 2023-03-01 14:07:40 +08:00
parent 86687a54a2
commit e218b9ea1b
2 changed files with 0 additions and 2 deletions

View file

@ -907,7 +907,6 @@ def search():
function move(e) { function move(e) {
modal.style.left = e.targetTouches[0].pageX - x + 'px'; modal.style.left = e.targetTouches[0].pageX - x + 'px';
modal.style.top = e.targetTouches[0].pageY - y + 'px'; modal.style.top = e.targetTouches[0].pageY - y + 'px';
e.preventDefault();
} }
// (3) 鼠标弹起就让鼠标移动事件移除 // (3) 鼠标弹起就让鼠标移动事件移除
document.addEventListener('touchend', function () { document.addEventListener('touchend', function () {

View file

@ -907,7 +907,6 @@ def search():
function move(e) { function move(e) {
modal.style.left = e.targetTouches[0].pageX - x + 'px'; modal.style.left = e.targetTouches[0].pageX - x + 'px';
modal.style.top = e.targetTouches[0].pageY - y + 'px'; modal.style.top = e.targetTouches[0].pageY - y + 'px';
e.preventDefault();
} }
// (3) 鼠标弹起就让鼠标移动事件移除 // (3) 鼠标弹起就让鼠标移动事件移除
document.addEventListener('touchend', function () { document.addEventListener('touchend', function () {