daybrush / ruler

A Ruler component that can draw grids and scroll infinitely.
https://daybrush.com/ruler/
MIT License
334 stars 39 forks source link

why is the line of the ruler not displayed when the height of canvas is more than 16350px #44

Open weijia18 opened 1 year ago

weijia18 commented 1 year ago

Description

i use the demo in the react-ruler, and this is my code image here is what is displayed in chrome image what is going wrong?

PacoVerduBravo commented 1 week ago

When attempting to render a very long ruler, the component stops rendering its content beyond a certain point. In the provided CodeSandbox, this happens at approximately 16,500px, but in my application, it occurs at 11,000px.

Steps to Reproduce

  1. Open the CodeSandbox.
  2. Observe the behavior when the ruler exceeds the mentioned pixel lengths.

Expected Behavior The ruler should render consistently, regardless of its length.