Simpletalk
Simpletalk copied to clipboard
Make halo deal with "small" boxes
This grew out of this comment: https://github.com/UnitedLexCorp/SimpleTalk/pull/52#issuecomment-708384923
When re-sizing a halo-ed object if it gets too small the mouse's position starts to loose its tracking with the button that it originally clicked on.
An approach is to force the button to "release" when it no longer can make the box any smaller? I.e. a test which just checks if the a non-zero movement results in a zero-movement and then just emitting a release event right there? Then the user would need to click it again. I guess the hard part is that if it is at the edge of the size then it would mean that a click and movement (no matter how small) in the direction would force it to release.
I can think of a lot of partial solutions, but can usually quickly find a corner case that messes it all up. It's kind of tough not being able to hold the pointer in place. What about just allowing all elements to get arbitrarily small and just cutting off what you can't see? Why is there a minimum size?