Dragging Panels... Off the side on the plugin. never to be seen again!
-
Dragging panels around is quite fun in a plugin, until you manage to drag it outside of the plugin window, at which point it's impossible to get it back :face_with_tears_of_joy:
Can you set a boundary? Script a mousecallback perhaps?
-
-
@d-healey I meant in the compiled plugin :)
-
I've not used draggable panels but assuming they trigger the drag mouse callback you should be able to track the position of the panel as it's moved and prevent it going off screen.
-
I just realised there's a
Panel.setDraggingBounds()
function, might be what you're after -