mirror of
https://github.com/lwouis/alt-tab-macos.git
synced 2026-05-24 11:20:36 +00:00
fix: show window controls, even when mouse hover option is disabled
This commit is contained in:
@@ -68,7 +68,7 @@ class ThumbnailView: NSStackView {
|
||||
if let shouldShowWindowControls = shouldShowWindowControls_ {
|
||||
self.shouldShowWindowControls = shouldShowWindowControls
|
||||
}
|
||||
let shouldShow = shouldShowWindowControls && isHighlighted && !Preferences.hideColoredCircles && !window_!.isWindowlessApp && !Preferences.hideThumbnails
|
||||
let shouldShow = shouldShowWindowControls && !Preferences.hideColoredCircles && !window_!.isWindowlessApp && !Preferences.hideThumbnails
|
||||
if isShowingWindowControls != shouldShow {
|
||||
isShowingWindowControls = shouldShow
|
||||
[closeIcon, minimizeIcon, maximizeIcon].forEach { $0.isHidden = !shouldShow }
|
||||
@@ -210,7 +210,7 @@ class ThumbnailView: NSStackView {
|
||||
|
||||
func mouseMoved() {
|
||||
showOrHideWindowControls(true)
|
||||
if !isHighlighted {
|
||||
if Preferences.mouseHoverEnabled && !isHighlighted {
|
||||
mouseMovedCallback()
|
||||
}
|
||||
hoverWindowControls()
|
||||
|
||||
@@ -211,7 +211,7 @@ class ScrollView: NSScrollView {
|
||||
|
||||
override func mouseMoved(with event: NSEvent) {
|
||||
// disable mouse hover during scrolling as it creates jank during elastic bounces at the start/end of the scrollview
|
||||
if !Preferences.mouseHoverEnabled || isCurrentlyScrolling { return }
|
||||
if isCurrentlyScrolling { return }
|
||||
if let hit = hitTest(App.app.thumbnailsPanel.mouseLocationOutsideOfEventStream) {
|
||||
var target: NSView? = hit
|
||||
while !(target is ThumbnailView) && target != nil {
|
||||
|
||||
Reference in New Issue
Block a user