Skip to content

timeSteps don't work properly in v0.30.0-beta.1 #946

Closed
@VasylMalanii

Description

@VasylMalanii

Describe the bug
Timeline doesn't generate proper intervals like it does in v0.28.

To Reproduce

  1. Create project with react-calendar-timeline (v0.30.0-beta.1 or v0.30.0-beta.2)
  2. Render any calendar with
    timeSteps={{
    second: 1,
    minute: 1,
    hour: 4,
    day: 1,
    month: 1,
    year: 1,
    }}
  3. Zoom in to see hours on timeline.
  4. Timeline sometimes doesn't render proper intervals (for example, 23:00, 03:00, 07:00, 11:00, 15:00, 19:00 instead of 00:00, 04:00, 08:00, 12:00, 16:00, 20:00).
    v0 30_1

https://codesandbox.io/p/sandbox/timeline-demo-timesteps-bug-kw8wpg (it's example with v0.28 because v0.30.0-beta.1 fails in codesandbox)

Expected behavior
v0 28_1

Library Version
v0.30.0-beta.1
v0.30.0-beta.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions