Skip to content

Draggable areas offsets in scroll views #35

Description

@LucasBourgeois

If DndProvider is above a scrollView and not directly above draggableGrid, If scrolling, the pan areas are not well positionned.
Idk if it's more a bug because of my implementation or a bug in the DndProvider.

 <DndProvider>
    <ScrollView>
		<DraggableGrid direction="row" size={3}>
                      {[1, 2, 3, 4, 5].map(i => <Draggable key={i} id={i.toString()}><Text>{i}</Text></Draggable>)}
                 </DraggableGrid>
	</ScrollView>
 <DndProvider>

Having the DndProvider directly above DraggableGrid do the tricks tho.

See videos

Enregistrement.de.l.ecran.2024-12-17.a.11.53.20.mov
Enregistrement.de.l.ecran.2024-12-17.a.11.53.20.mov

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions