Skip to content

Repositioning with an Offset? #172

@rajleechaudry

Description

@rajleechaudry

Thanks for creating this library. Is there a way to control the drag offset? My use case is as follows:

(A) I have a bottom sheet using react-native Animated (the standard RN Animated not Reanimated).
(B)In the bottom sheet, I have some icons for various apps, e.g., Facebook, Insta, etc., which are all DraxView draggables.
(C) Issue: When I start to drag, for whatever reason, the DraxView starts a few inches above where my mouse is.

Hypothesis: I think DraxView for some reason is offsetting the starting position with my bottom sheet -- not sure why. Is there a way to control this?

Adding 3 files. One is the page. The other is the bottom sheet. The other is the widget component I created wrapping DraxView
Archive.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcontraindicationNegative behavior that arises only when combining Drax with other librariesgesturesRelated to gesture handlingquestionQuestion about the library and/or its usageresearchFor issues which require additional research workstylingRelated to styling the components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions