Show the arrow cursor over buttons

This commit is contained in:
Ian Gulliver
2026-10-22 08:42:54 -07:00
parent 17f2706ba4
commit 22f73a3bad
+11
View File
@@ -681,6 +681,10 @@ private final class FlowTextView: NSTextView {
NSCursor.arrow.set()
return
}
if clickable(event) {
NSCursor.arrow.set()
return
}
super.cursorUpdate(with: event)
}
@@ -689,6 +693,13 @@ private final class FlowTextView: NSTextView {
return
}
super.mouseMoved(with: event)
if clickable(event) {
NSCursor.arrow.set()
}
}
private func clickable(_ event: NSEvent) -> Bool {
onTap != nil && !link(at: convert(event.locationInWindow, from: nil))
}
private func frontmost(_ event: NSEvent) -> Bool {