Commit 185e804
feat(ui): Add pointer coordinates and drop zone rect to ct-drop event (commontoolsinc#2223)
The ct-drop-zone component now emits additional data in the ct-drop event:
- pointerX/pointerY: The cursor coordinates at drop time
- dropZoneRect: The bounding rect of the drop zone (left, top, width, height)
This enables patterns to calculate precise drop positions within the zone,
which is necessary for implementing drag-and-drop features like placing
tiles on a game board where shadow DOM isolation prevents DOM queries.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: tonyespinoza1 <tonyespinoza1@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent e292a9c commit 185e804
1 file changed
+12
-1
lines changedLines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
171 | 182 | | |
172 | 183 | | |
173 | 184 | | |
| |||
0 commit comments