Open oliveryasuna opened 8 months ago
Hi, it is common to put a moveable in the viewport.
The reason it doesn't follow the scroll is because the moveable is not within the scroll area. The following structure is recommended.
<Canvas>
<Selector />
<InfiniteViewer>
<div class="viewport">
<Moveable />
if you hide target rect line (blue line) or origin dot (red circle)
hideDefaultLines={true}
origin={false}
rootContainer is the correct way to use it in general.
rootContainer={() => viewerRef.current?.getElement() || document.body}
Environments
Description
I cannot seem to get Selecto working when class names are populated from a CSS module using Vite. Maybe I am missing something obvious? Thanks!
Also, I am still learning how to use your libraries. They are great! If you have a moment, could you please answer these questions?
rootContainer={viewerRef.current?.getElement() || document.body}
, but this feels messy.