tldraw / tldraw

SDK for creating whiteboards and canvas experiences on the web.

Home Page:https://tldraw.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: 800% zoom bugged for patterned shapes

MitjaBezensek opened this issue · comments

What happened?

When you have a shape with a pattern and zoom in to 800% you stop seeing the pattern and instead see a solid background for the shape.

Seems to be a result of the camera controls work, namely we changed the number of patterns we generate in defaultStyleDefs, which means that some patterns then don't exist when we want to use them in PatternFill.

How can we reproduce the bug?

CleanShot.2024-05-06.at.14.23.29.mp4

What browsers are you seeing the problem on?

Chrome

Contact Details

mitja.bezensek@gmail.com

Code of Conduct

  • I agree to follow this project's Code of Conduct

I was not able to reproduce this bug on windows 10 Chrome Version 125.0.6422.61 (Official Build) (64-bit) . When I zoom in the pattern does not disappear. Maybe this issue was fixed?