jquery-sked-tape
jquery-sked-tape copied to clipboard
Long events are now clamped to the start of the timeline
Long events (i.e. spanning the start and end of the displayed timeline) were clamped to the end of the timeline, but not to the start of the timeline. This is now fixed so that they are clamped to the start and end of the timeline.
Also updated various package dependencies, as required to make the project build again.
Hi! I appreciate your contribution.
This behavior is intentional. The main purpose of not clamping events at the beginning of the timeline is to prevent users from mistakenly assuming that any such event starts exactly at the beginning of the timeline, where it is placed. The user may simply not notice the discrepancy between the time displayed on the timeline and the time on the event.
Still, this feature can be included into the repository after making it toggleable.
@lexkrstn Understood. I've changed the clamping logic to use a new option called clampEventStart, which defaults to false (keeping the existing behaviour).