1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-20 12:51:43 +02:00

clean up comments

This commit is contained in:
Morris Brodersen
2023-11-26 14:31:37 +01:00
parent c91b27980e
commit 2815a1eb4c
9 changed files with 54 additions and 47 deletions

View File

@@ -22,10 +22,10 @@ export function AppDraggable(el, options) {
let imageX, imageY;
let currentTarget;
el.addEventListener('touchstart', start);
el.addEventListener('touchstart', start, { passive: true });
el.addEventListener('mousedown', start);
// maybe prevent click
// Maybe prevent click
el.addEventListener(
'click',
(e) => {