XML Feeds

.

[javascript-dev] Re: Callback for bpatcher resize event?

John Pitcairn cycling74forum at opuslocus.net
Wed Dec 5 23:30:46 MST 2007


> The mouse up/patch unlocked thing is a bit too hackish for me, 
> unless I am misunderstanding.

Maybe I'm misunderstanding?

The user can't resize anything without clicking/dragging on it with the mouse, right? When the mouse is released, the resize (if there was one) is done. You feed the mouseup from mousestate to your js, which checks the patcher to see if the width/height is different. If it is, you rearrange your GUI. If it isn't, you do nothing. No polling via js task or otherwise is required, it's a mouse-driven event.


More information about the javascript-dev mailing list