Are _dragX
and _dragY
safe to use?
#2964
Unanswered
Simon-Tang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For my use case, I need to access the x/y
MotionValue
for a draggable element, and it seems_dragX
and_dragY
are what I need. However the underscore and this CHANGELOG entry suggest it's meant for internal use.motion/CHANGELOG.md
Line 3366 in ecd97f7
Just curious if there are plans to solidify this API or if it might change later.
As an aside, it seems my tab freezes up if I use
dragConstraints={ref}
with_dragX
on the same element.Also, noticed that
_dragX
and_dragY
are used together throughout the codebase, but the one exception is https://github.com/motiondivision/motion/blame/ecd97f7dce8954be300aa73ab6a96208437941c5/packages/framer-motion/src/render/utils/is-draggable.ts#L4, where only_dragX
is referenced.Beta Was this translation helpful? Give feedback.
All reactions