Melkeydev / astrostation

https://astrostation.me
MIT License
200 stars 42 forks source link

draggable: fixes z index increment per-position-change #261

Closed justnat3 closed 1 year ago

justnat3 commented 1 year ago

This perhaps is not exactly what roy envisioned. However, here we are! This takes advantage of global state.

if we click on three cards a,b,c.

  1. click->a where a z_index is higher than the last GLOBAL z_index state

  2. click->b where b z_index is higher than the last GLOBAL z_index state b now overlaps a

  3. click->c where c z_index is higher than the last GLOBAL z_index state c now overlaps b and a

    • b still overlaps a
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
astrostation ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 30, 2023 at 0:04AM (UTC)
justnat3 commented 1 year ago

https://github.com/MelkeyOSS/astrostation/issues/245