hchiam / code-inspiration

https://code-inspiration.surge.sh Capture snippets of code inspiration. Works offline after your 1st visit. Built with Svelte (migrated from React).
MIT License
1 stars 0 forks source link

After page load, clicking to drag causes transform to "reset" or be relative to middle #26

Open hchiam opened 4 years ago

hchiam commented 4 years ago

After page reload, when you click on an idea, transform seems to be set to relative to <IdeasWrapper>, but works as expected after that.

This might be a quirk with <Draggable> from react-draggable. I've already tried to use defaultPosition, but not working so far.

hchiam commented 4 years ago

seems to be same problem with the svelte version