dragging object fun
Sep 14 2020 | 2:14 am
See patch below. I'm trying to allow a user to visually drag a cell from a jit.cellblock object, "onto" another object (a panel), and to turn on that panel's border attribute.
I have 2 cellblocks and 3 panels in the patch, and dragging from cellblock #1 should only toggle the border of panels #1 and 2 when over them, but not of panel #3. And dragging from cellblock #2 should only toggle the border of panel #3 when over it, but not of #1 and #2.
As you can see in the patch, I've got the dragging part done, not perfect but good enough for now. Wondering how I should highlight the panels when over them though. I could obviously brute force it, but this is just a test patch of something that will be more complicated moving forward - ideally I'd like to be able to generalize things so that I can specify "highlight objects X or Y when dragging from object A onto them."