Mercurial Hosting > dad
diff src/dad.js @ 12:66e427a8d046
set draggable=false
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 15 May 2023 18:37:41 -0600 |
parents | 80ef70ca5860 |
children | 36c7b187827b |
line wrap: on
line diff
--- a/src/dad.js Thu May 11 14:37:10 2023 -0600 +++ b/src/dad.js Mon May 15 18:37:41 2023 -0600 @@ -140,6 +140,7 @@ dad.setDraggable = function(el) { el.setAttribute('dad-drag',''); + el.setAttribute('draggable','false'); el.addEventListener('mousedown',onMouseDown); el.addEventListener('touchstart',onTouchStart); };