Skip to content
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

Disable drag & drop event to outside scheduler #1732

Open
ck310 opened this issue Jul 23, 2024 · 2 comments
Open

Disable drag & drop event to outside scheduler #1732

ck310 opened this issue Jul 23, 2024 · 2 comments

Comments

@ck310
Copy link

ck310 commented Jul 23, 2024

Describe the bug

Hi,

How would I go about disable dragging and dropping event to outside of scheduler.

Thank you,

Minimal reproduction of the problem with instructions

Screenshots

Versions

  • @angular/core:
  • angular-calendar:
  • Browser name and version:
@matts-bot
Copy link

matts-bot bot commented Jul 23, 2024

Thanks so much for opening an issue! If you'd like to support this project, then please consider sponsoring me

@ck310
Copy link
Author

ck310 commented Jul 23, 2024

mwlDraggable
dragActiveClass="cal-drag-active"
[dropData]="{ event: timeEvent.event }"
[dragAxis]="{ x: false, y: editMode && timeEvent.event.draggable && timeEventResizes.size === 0}"
[dragSnapGrid]="{ x: 0, y: hourSegmentHeight }"
[ghostDragEnabled]="true"
[showOriginalElementWhileDragging]="true"
(dragEnd)="dragEnded(timeEvent, $event, dayColumnWidth, true)"

I have enabled, ghost element and while dragging or resizing it can go outside the view, even tho i have restrictions on where the events should snap to, but this element going outside the scrollable parent is a bit weird.

Is this issue solvable?

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

No branches or pull requests

1 participant