Page 1 of 1

Usage of TravelTime and TimeAxis filter result in strange snap to grid

Posted: Tue Nov 29, 2022 2:05 pm
by lx0

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:

        
{ 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.

BR,
Alex


Re: Usage of TravelTime and TimeAxis filter result in strange snap to grid

Posted: Tue Nov 29, 2022 4:40 pm
by marcio

Hey Alex,

I tested your toggle in the toolbar, but didn't get any strange behavior, I recorded a video from our demo with that configuration.

Do you have another configuration set on your side, maybe??


Re: Usage of TravelTime and TimeAxis filter result in strange snap to grid

Posted: Tue Nov 29, 2022 4:50 pm
by lx0

Hi Marcio,

You got the same behavior than I did. Please note the event slightly moving/snapping to left when you drop it.

BR,
Alex


Re: Usage of TravelTime and TimeAxis filter result in strange snap to grid

Posted: Wed Nov 30, 2022 10:04 am
by marcio

Hey Alex,

Thanks for mentioning it, I noticed that after. Here is a ticket for investigating/fixing it https://github.com/bryntum/support/issues/5686