Skip to content

Commit

Permalink
home: fix hit testing of play button in sidebar
Browse files Browse the repository at this point in the history
Fixes #3980
  • Loading branch information
osy committed May 7, 2022
1 parent fcb04d7 commit 8148940
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Platform/macOS/DoubleClickHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ class DoubleClickListeningView: NSView {
}

override func mouseDown(with event: NSEvent) {
self.isHidden = true
super.mouseDown(with: event)
self.isHidden = false
if event.clickCount == 2 {
handler()
}
Expand Down

0 comments on commit 8148940

Please sign in to comment.