fix(web): prevent event dragging start from out of bounds #409
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Prevent drag from starting when pointer is outside event bounds by checking the cursor pos against event bounds. I think this is better UX (prevents the current situation where you can drag your cursor with the event despite it being very far away), but let me know if this has different plans to be fixed.
Screenshots / Recordings
Add screenshots or recordings here to help reviewers understand your changes.
Type of Change
Related Areas
Testing
Checklist
Notes
(Optional) Add anything else you'd like to share.
By submitting, I confirm I understand and stand behind this code. If AI was used, I’ve reviewed and verified everything myself.
Summary by cubic
Stop event drag from starting when the pointer is outside the event, preventing ghost drags and improving accuracy in the calendar. Adds a simple hit-test on the event element before the drag begins.
Written for commit 66b9025. Summary will update automatically on new commits.