From 22f73a3baddf8d00219027b699f5b87b605c1bb5 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 22 Oct 2026 08:42:54 -0700 Subject: [PATCH] Show the arrow cursor over buttons --- mac/Sources/Byre/MarkdownView.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mac/Sources/Byre/MarkdownView.swift b/mac/Sources/Byre/MarkdownView.swift index 60ba638..dafd805 100644 --- a/mac/Sources/Byre/MarkdownView.swift +++ b/mac/Sources/Byre/MarkdownView.swift @@ -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 {