changeset 12:66e427a8d046

set draggable=false
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 15 May 2023 18:37:41 -0600
parents 80ef70ca5860
children 36c7b187827b
files src/dad.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r 80ef70ca5860 -r 66e427a8d046 src/dad.js
--- 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);
 	};