-
Notifications
You must be signed in to change notification settings - Fork 147
Resize event #417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Resize event #417
Conversation
Upgrade packages: * Migrate to ESModule * New ESLint Flat Config * Migrate to Vite * New React v19 types * Use MUI Grid2
Allow an event to have its length changed with a drag handle
|
I plan to implement more accurate dragging next for setting event start times - the idea would be drag the event to the correct start time, then resize it to the correct finish time. This would make it in line with many other calendar apps. |
|
I'm also considering whether I want to offer a 'dragSnap' scheduler option that would snap resizing and dragging of events to, for example, the nearest 5 minutes. This would mean we could keep the 'step' option that we current have for the actual drawing of the calendar, but also snap event drag and resize to a different unit. |
|
Amazing @vespasianvs! I assume this would be applicable on week/day views only? month view might have some limitation? (horizontal/vertical sizing, plus days instead of time). |
|
Yeah - it's just week/day views only and doesn't work for multiday events as it's for resizing the hours. A similar strategy should work in those cases, but I've not done it as I'm afraid it's not something I need right now for the project that I'm working on. |
* Always call onResize * Move Drag Image to constants
Resize event bug
|
Changed from |
if we can set the snap rule using a custom function that would be great. so we can snap if minute%5/%10/%15/%30, or some crazy rule like during sunday, if hour=12pm/6pm, minute snap can only be 32. return false for other value of minute |
This adds a drag handle to the bottom of an event in day and week view so that the length of the event can be easily changed.
Screen.Recording.2025-02-21.150304.mp4
This depends on my PR #416 as I wanted the updated packages before I started doing my changes.