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

Should be possible to toggle constrainDragToResource dynamically #542

Closed
matsbryntse opened this issue Apr 14, 2020 · 1 comment
Closed
Assignees
Labels
feature request resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@matsbryntse
Copy link
Member

matsbryntse commented Apr 14, 2020

scheduler.on('beforeEventDrag', () => scheduler.features.eventDrag.constrainDragToResource = true);

@matsbryntse matsbryntse added this to the Scheduler 3.1.2 milestone Apr 14, 2020
@matsbryntse matsbryntse self-assigned this Apr 14, 2020
@matsbryntse matsbryntse added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Apr 14, 2020
@sylvainmouret
Copy link

Hello,
Does this dynamic toggling also applies to the event for which the drag is about to start?
I did an experiment that seems to indicate that the event which is about to be dragged is not impacted by the new value of constrainDragToResource.
Thanks

@SergeyMaltsev SergeyMaltsev modified the milestones: Scheduler 3.1.2, 3.1.2 Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

3 participants