cursor
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user