This repository has been archived by the owner on Mar 2, 2024. It is now read-only.
[bug] Pointer position is incorrect if Tldraw is drawing in a scrolling container #206
Labels
bug
Something isn't working
Please see this minimum repro https://stackblitz.com/edit/vitejs-vite-tspw4n?file=src%2FApp.jsx&terminal=dev
I guess the issue is that the
getPoint
function in https://github.com/tldraw/tldraw/blob/4aa8547a8e856dc40db2ddbc48161fbf7d675b42/packages/core/src/inputs.ts#L385-L390 does not take scroll container into consideration.Kapture.2022-04-30.at.15.14.13.mp4
The text was updated successfully, but these errors were encountered: