Skip to content

fix(web): resolve drag and drop not working in month view - #473

Merged
JeanMeijer merged 1 commit into
mainfrom
fix/resolve-drag-and-drop-not-working-in-month-view
Jul 25, 2026
Merged

fix(web): resolve drag and drop not working in month view#473
JeanMeijer merged 1 commit into
mainfrom
fix/resolve-drag-and-drop-not-working-in-month-view

Conversation

@JeanMeijer

@JeanMeijer JeanMeijer commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Description

Briefly describe what you did and why.

Screenshots / Recordings

Add screenshots or recordings here to help reviewers understand your changes.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • UI/UX update
  • Docs update
  • Refactor / Cleanup

Related Areas

  • Authentication
  • Calendar UI
  • Data/API
  • Docs

Testing

  • Manual testing performed
  • Cross-browser testing (if UI changes)
  • Mobile responsiveness verified (if UI changes)

Checklist

  • I’ve read the CONTRIBUTING guide
  • My code works and is understandable and follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in complex areas
  • I have updated the documentation
  • Any dependent changes are merged and published

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

Fixes broken drag-and-drop in the Month view by adding a drag preview and correct pointer offset tracking, so events can be moved across days/weeks reliably.

  • Bug Fixes
    • Added DragPreviewPortal and hid the original element while dragging for smooth visuals.
    • Tracked grab offsets relative to the event rect to keep the preview under the cursor.
    • Calculated positions using container and event bounds; updated preview x/y/size during drag.
    • Used useDraggingEventId to toggle drag state and moveEvent with proper column offsets.
    • Passed rows.total into ContainerProvider to align grid math and enable correct drops across rows.

Written for commit d57de6f. Summary will update on new commits.

Review in cubic

@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
analog Ready Ready Preview, Comment Jul 25, 2026 9:11am

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

@JeanMeijer
JeanMeijer merged commit 3a483ec into main Jul 25, 2026
7 checks passed
@JeanMeijer
JeanMeijer deleted the fix/resolve-drag-and-drop-not-working-in-month-view branch July 25, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant