acidb / mobiscroll

Cross platform UI controls for progressive web and hybrid apps (plain JS, jQuery, Angular and React)
https://mobiscroll.com
Other
1.54k stars 439 forks source link

Timeline: inconsistent behaviour when changing timescale #509

Open gudleik opened 1 year ago

gudleik commented 1 year ago

Can be reproduced using this example:

https://demo.mobiscroll.com/jquery/timeline/daily-weekly-monthly-yearly-timeline#

Set timescale to 4-hours:

image

Set timescale to 12 hours:

image

Now, set the timescale to 24 hours and then back to 12 hours. This 12-hour view is different than the previous :

image
dioslaska commented 1 year ago

Indeed, using inequal day splits (9:00 -> 17:00 / 12 hours) can lead to this. Do you have an actual use case which requires this setup?

gudleik commented 1 year ago

We have a settings panel quite similar to the one used in the demo, where the user can change timescale and display hours, like this:

image