Skip to content

Let a move back undo an edge crossing jump - #273

Merged
didriksg merged 1 commit into
mainfrom
mouse-edge-grace-zone-228ef7f1
Nov 12, 2026
Merged

didriksg merged 1 commit into
mainfrom
mouse-edge-grace-zone-228ef7f1

Conversation

@didriksg

Copy link
Copy Markdown
Owner

With Cross Unaligned Edges on, a small push past an edge moves the pointer to the other display, often at another height. To get back, you had to find your old spot again.

Now Crisp remembers where the pointer was before the jump. If you move back over the same edge while you are still within 150 points of where you landed, the pointer goes back to that spot. If you move further than that, the jump stays. There is no time limit, only the distance.

This follows #184. The rule is EdgeReturn in Models/EdgeCrossing.swift. Its tests cover a move back at the edge, macOS crossing back on its own, the push that caused the jump arriving late, a slide along the edge, and a move too far.

With Cross Unaligned Edges on, a small push past an edge moves the pointer to the other display, often at another height. To get back, you had to find your old spot again.

Now Crisp remembers where the pointer was before the jump. If you move back over the same edge while you are still within 150 points of where you landed, the pointer goes back to that spot. If you move further than that, the jump stays. There is no time limit, only the distance.
@didriksg
didriksg merged commit 22e3cc1 into main Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant