This commit is contained in:
2026-10-10 14:54:39 +02:00
parent a0b3ef9975
commit 499fcd12ca
27 changed files with 435 additions and 46 deletions
@@ -49,7 +49,7 @@ class PointerBoundTextView: NSTextView, PointerTextTarget {
override func mouseEntered(with event: NSEvent) {
if allowsIBeamRect { super.mouseEntered(with: event) }
guard let window, !PointerPolicy.isSelecting else { return }
PointerPolicy.updateCursor(in: window)
PointerPolicy.scheduleUpdate(in: window)
}
/// An update meant for another view is handed to the view under the mouse.
@@ -58,7 +58,7 @@ class PointerBoundTextView: NSTextView, PointerTextTarget {
if PointerPolicy.isSelecting || isTopmost(atWindowPoint: point) {
updatePointer(atWindowPoint: point)
} else {
PointerPolicy.updateCursor(in: window)
PointerPolicy.scheduleUpdate(in: window)
}
}