Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more in-depth check for zone determination when dragging around
the screen. Previously, it would iterate through the zones in the order they were added and find the first one that fit the description. While this works in most cases, if a user wants to have overlapping zones, it is better to iterate through all of them and find the zone that the user expects. There are cases where a zone is completely inaccessible on drag because of the current code. To resolve this, the zone search will look for the smallest zone possible. The reason I chose this solution is because this guarantees that zones are at least reachable since if a zone was bigger than another zone, then there must be a part of it that is exposed, therefore reachable itself. Note: this solution is for the scenario between two zones. More than that is not guaranteed. But I feel like this covers enough scenarios to warrant its addition. Example: ---------------- - Zone1 - - ---------- - - - Zone2 - - - - - - - ---------- - ---------------- Previously, zone2 was inaccessible since it would iterate through 1 then 2. But 1 would always be seen first when dragging a window. With this fix it zone2 will be accessible.
- Loading branch information