doing this I found a bug in fluid.plotter (pd) ,if fluid.plotter receives a “highlight” message, coordinates are output again when releasing mouse button. ( When not using highlight, fluid plotters behaves correctly , not repeating its output )
now, you are totally right. I can reproduce and am chasing.
[insert favourite unsavoury swear word here] I hate pd gui programming in TCL.
Soooooo
In the drawing routing, to get the GUI to be responsive, I need to delete the objects on the TCL side, but then to do that, I need to reconnect the mouse-up function… which cancels the mouse-up function associated with the drag.
all in all, I will need to find a hack around it…
This sounds a little bit painful… I hope pd gui programming gets better whenever it switches to gtk.
me too
ok another hour spent at trying to go around the fact that TCL is bad.
2 options:
- we have a sluggish UX
- we fix the bug once Pd moves to a contemporary GUI framework
This is all because, as I said above, updating the frame position, when we redraw, seems to clutter TCL. So we have to delete it. but since the mouseup function is attached to it since the downclick it never gets called when the mouse is released… so we cannot get the right behaviour. Even more fun, it doesn’t send the mouseup message even if the mouseup option is ticked. so it is a real bug… but I cannot see how to fix it.
Any pointers welcome… the code is online and I’ve tried everything!