You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using travelTime in events and a filter on the timeAxis together, the snap to grid feature of the scheduled events change. Somehow the events seem to consider the travelTime as well, but this does not feel very intuitive.
I was able to recreate this behavior by changing the travel-time demo from the scheduler examples and adding the following in tbar:
{
type : 'slidetoggle',
label : 'Filter non-working times',
color : 'b-blue',
checked : false,
onChange({ checked }) {
if (checked) {
scheduler.timeAxis.filter((t) => new Date(t.startDate).getHours() > 6 && new Date(t.startDate).getHours() < 18);
} else {
scheduler.timeAxis.clearFilters();
}
}
}
As soon as the filter is enabled, the events do snap strangely when moving."
If you check the video, see how the event "moves" to the left as soon as we drop the event when we don't have the non-working time.
Forum post
"Hi,
When using travelTime in events and a filter on the timeAxis together, the snap to grid feature of the scheduled events change. Somehow the events seem to consider the travelTime as well, but this does not feel very intuitive.
I was able to recreate this behavior by changing the travel-time demo from the scheduler examples and adding the following in tbar:
As soon as the filter is enabled, the events do snap strangely when moving."
If you check the video, see how the event "moves" to the left as soon as we drop the event when we don't have the non-working time.
Bryntum.Scheduler.Pro.-.Travel.time.demo.-.29.November.2022.mp4
The text was updated successfully, but these errors were encountered: