minsulander / vatiris

VATSim (Sweden, Unofficial) Integrated Real-time Information System
GNU General Public License v3.0
6 stars 2 forks source link

Optionally snap windows, or disallow overlap #23

Closed Sjolus closed 1 month ago

Sjolus commented 3 months ago

It would be sweet if the windows could snap together or not allow overlap.

An option for this could be considered, since sometimes I guess some users would want overlaps etc.

maxlk96 commented 3 months ago

+1 on snapping

https://github.com/nextapps-de/winbox/discussions/66

https://github.com/lf2com/magnet.js/tree/master

minsulander commented 2 months ago

Nice idea. Might be doable just by setting a snapping threshold (like 5 pixels) and knowing all the x/y/width/height of all the windows (which I think we should be able to). Using a grid and snap-to-grid feature would also be an option.. will look into it.

minsulander commented 2 months ago

Did some testing on this... will be doable. Just gotta find a nice time slot and a cold drink to work on it for a while.