Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draggable is broken, documentation does not match requirements #9

Open
AlexReff opened this issue Jan 24, 2020 · 1 comment
Open

Draggable is broken, documentation does not match requirements #9

AlexReff opened this issue Jan 24, 2020 · 1 comment

Comments

@AlexReff
Copy link

AlexReff commented Jan 24, 2020

Please either release a working version of this library or update the documentation to reflect how to use it.

https://codesandbox.io/s/awesome-lewin-ms5t1

From the documentation:

<Draggable style={{translateX: 150, translateY: 200}}>
  {({translateX, translateY}) => {
    return (
      <div style={{transform: `translate3d(${translateX}px, ${translateY}px, 0)`}}>
        <Bubble />
      </div>
    );
  }}
</Draggable>
@lukashaverbeck
Copy link

lukashaverbeck commented Apr 5, 2020

I ran into the same problem. It seems like there would be an inconsistent use of the style / position property. You should be able to fix the problem by changing "style" to "position" when using the component if you use JavaScript or by changing "style" to "position" in the DraggableProps Type if you use TypeScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants