Mercurial Hosting > dad
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 11:80ef70ca5860 | 12:66e427a8d046 |
|---|---|
| 138 document.addEventListener('touchend',onMouseUp); | 138 document.addEventListener('touchend',onMouseUp); |
| 139 } | 139 } |
| 140 | 140 |
| 141 dad.setDraggable = function(el) { | 141 dad.setDraggable = function(el) { |
| 142 el.setAttribute('dad-drag',''); | 142 el.setAttribute('dad-drag',''); |
| 143 el.setAttribute('draggable','false'); | |
| 143 el.addEventListener('mousedown',onMouseDown); | 144 el.addEventListener('mousedown',onMouseDown); |
| 144 el.addEventListener('touchstart',onTouchStart); | 145 el.addEventListener('touchstart',onTouchStart); |
| 145 }; | 146 }; |
| 146 | 147 |
| 147 dad.setDropzone = function(el) { | 148 dad.setDropzone = function(el) { |
