You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In lit version Pancake.wrapperBounds always ends up with {x:0 y:0} because (at least in chrome) ResizeObserverEntry.contentRect always has x=0, y=0, which then throws off client-canvas coordinate transformations
For now I've patched the ResizeObserver callback to use getClientRects instead. Though ResizeObserver is likely not the right tool for the purpose.
Thanks for the tool.
In lit version
Pancake.wrapperBounds
always ends up with {x:0 y:0} because (at least in chrome)ResizeObserverEntry.contentRect
always has x=0, y=0, which then throws off client-canvas coordinate transformationsFor now I've patched the
ResizeObserver
callback to usegetClientRects
instead. ThoughResizeObserver
is likely not the right tool for the purpose.I can make a PR with this patch, or even work on better solution.
The text was updated successfully, but these errors were encountered: