vkurko/calendar

Event displays on top when dragging

tmarsik42 opened this issue · 4 comments

When there's multiple events and you start dragging one it shows a drag shadow on different position.

See image. I started dragging third (purple) element and it showed on first position.
Snímek obrazovky 2022-12-07 v 16 35 43

Amazing library by the way.

Hi @tmarsik42

This behavior was copied from Google Calendar. Do you think it's worth changing?

I'm no UX expert unfortunately.
I couldn't get Google calendar nor macos calendar to change duration by dragging but since this library is inspired by Full calendar we can take a look there.

https://fullcalendar.io/demos

Here, when I start dragging an event it continues it's way on the row it has been originally on, and becomes first place on the next ones.

However I don't know how much of a hassle would this be and if it's worth it tbh. It's not blocking me at all. Just that I stumbled upon it and it seemed weird to me.

FullCalendar takes a very different approach in the month view. The event is dragged freely without being tied to the grid of days, and targeting is carried out by highlighting the day where the event falls.

I'll think about how the current behavior can be improved.

Thanks for an explanation, I'll close the issue for now