sudara / melatonin_inspector

A JUCE module that gives you the ability to inspect and visually edit (non-destructively) components in your UI.
MIT License
145 stars 17 forks source link

Ability to drag selected component around in the overlay #1

Closed sudara closed 1 year ago

sudara commented 3 years ago

Requires implementing wasMoved in the componentMovedOrResized callback.

The hard part will be making sure this doesn't screw up any UX "feel".

dikadk commented 1 year ago

Available on develop

I've added dragging of selected component within TopLevelComponent Bounds().

I had to move component selection from mouseDown() to mouseUp(). I don't think this makes UX any worse, but makes dragging logic simpler. Let me know your thoughts on this

https://user-images.githubusercontent.com/15266737/204887037-be02ebdc-b64e-4cfe-9a39-650242b32a6b.mp4

sudara commented 1 year ago

Super pumped about this, thank you!