Skip to content

Commit

Permalink
Fix cursor flicker while hovering button
Browse files Browse the repository at this point in the history
  • Loading branch information
pakerwreah committed Mar 29, 2024
1 parent f908240 commit 7ea605f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Calendr/Components/CursorButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CursorButton: NSButton {
private var trackingArea: NSTrackingArea?
private let cursor: NSCursor?

init(cursor: NSCursor? = .pointingHand) {
init(cursor: NSCursor?) {
self.cursor = cursor
super.init(frame: .zero)
refusesFirstResponder = true
Expand Down Expand Up @@ -49,7 +49,7 @@ class CursorButton: NSButton {

override func mouseMoved(with event: NSEvent) {
super.mouseMoved(with: event)
cursorUpdate(with: event)
cursor?.set()
}

override func mouseExited(with event: NSEvent) {
Expand Down

0 comments on commit 7ea605f

Please sign in to comment.