Skip to content

Commit

Permalink
neo_add_disable_touch_move(); ←セミコロンが抜けていたのを修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Jan 25, 2023
1 parent 5c7f76b commit 1e278ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions petitnote/template/basic/paint_neo.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
}
}



function neo_disable_touch_move (e) {//NEOの網目でスワイプしない
let screenwidth = Number(screen.width);
let appw = Number(<?=h($appw)?>);
Expand All @@ -51,7 +49,7 @@
document.getElementById('NEO').addEventListener('touchmove', neo_disable_touch_move ,{ passive: false });
}
document.addEventListener('touchmove', function(e) {
neo_add_disable_touch_move()
neo_add_disable_touch_move();
if(isPinchZooming ()){//ピンチズーム使用時はNEOの網目でスワイプする
document.getElementById('NEO').removeEventListener('touchmove', neo_disable_touch_move ,{ passive: false });
}
Expand Down

0 comments on commit 1e278ac

Please sign in to comment.