Skip to content

Commit

Permalink
fix: impossible to reach far windows
Browse files Browse the repository at this point in the history
closes #291
  • Loading branch information
ejbills committed Sep 4, 2024
1 parent 3717500 commit 434b5c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DockDoor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1.2.0;
CURRENT_PROJECT_VERSION = 1.2.1;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"DockDoor/Preview Content\"";
DEVELOPMENT_TEAM = 2Q775S63Q3;
Expand Down Expand Up @@ -579,7 +579,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1.2.0;
CURRENT_PROJECT_VERSION = 1.2.1;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"DockDoor/Preview Content\"";
DEVELOPMENT_TEAM = 2Q775S63Q3;
Expand Down
5 changes: 5 additions & 0 deletions DockDoor/Views/Hover Window/WindowDismissalContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class MouseTrackingNSView: NSView {
}

deinit {
clearTimer()
}

private func clearTimer() {
trackingTimer?.invalidate()
}

Expand All @@ -88,6 +92,7 @@ class MouseTrackingNSView: NSView {
cancelFadeOut()
setWindowOpacity(to: 1.0, duration: 0.2)

clearTimer()
SharedPreviewWindowCoordinator.shared.cancelDebounceWorkItem()
}

Expand Down

0 comments on commit 434b5c7

Please sign in to comment.