mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
rgl with compactType=vertical doesn't move items horizontally, so layoutItem.x in onDragStop stays near its origin, making horizontal slot detection wrong. Switch to tracking event.clientX/Y from onDrag (fitDragRef), then in onDragStop translate the final mouse position against the .grid-layout element's bounding rect to get pixel-accurate targetCol/targetRow. This makes horizontal, vertical, and long-distance swaps all reliable. https://claude.ai/code/session_01Cu7YDRKZrYX3sBs6g9w2dy |
||
|---|---|---|
| .. | ||
| api | ||
| components | ||
| context | ||
| hooks | ||
| lib | ||
| pages | ||
| types | ||
| utils | ||
| views | ||
| App.tsx | ||
| env.ts | ||
| index.css | ||
| login.tsx | ||
| main.tsx | ||
| vite-env.d.ts | ||