Mercurial Hosting > dad
comparison src/dad.js @ 23:650773682588 default tip
bug fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 09 Jul 2025 17:52:51 -0600 |
parents | 0b3376e13e22 |
children |
comparison
equal
deleted
inserted
replaced
22:5c19bb185b86 | 23:650773682588 |
---|---|
116 dragging.setAttribute('dad-dragging',''); | 116 dragging.setAttribute('dad-dragging',''); |
117 let rect = original.getBoundingClientRect(); | 117 let rect = original.getBoundingClientRect(); |
118 dragging.style.left = `${rect.x}px`; | 118 dragging.style.left = `${rect.x}px`; |
119 dragging.style.top = `${rect.y}px`; | 119 dragging.style.top = `${rect.y}px`; |
120 dragging.style.width = `${rect.width}px`; | 120 dragging.style.width = `${rect.width}px`; |
121 dragging.style.heigh = `${rect.heigh}px`; | 121 dragging.style.height = `${rect.height}px`; |
122 original.parentNode.appendChild(dragging); | 122 original.parentNode.appendChild(dragging); |
123 dad.onStart(myEvent(event)); | 123 dad.onStart(myEvent(event)); |
124 } | 124 } |
125 | 125 |
126 function onMouseDown(event) { | 126 function onMouseDown(event) { |