-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: quick clicking on close button triggers double-click close command
Since the close button is a child element of the page tab, quickly clicking the close button can trigger `HandleDoubleClick`, leading to incorrect command execution. The correct behavior should be to revert to the browser's original operation behavior. This commit adds a rough `IsOnCloseButton` check, which simply traverses push buttons and checks if the mouse is over it. It cannot be used alone to accurately identify the close button, so it is recommended to call it in conjunction with `IsOnOneTab`.
- Loading branch information
Showing
2 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters