Skip to content

fix(event-monitor): resolve click query interception issue#1059

Merged
tisfeng merged 4 commits intodevfrom
fix/click-query
Jan 25, 2026
Merged

fix(event-monitor): resolve click query interception issue#1059
tisfeng merged 4 commits intodevfrom
fix/click-query

Conversation

@tisfeng
Copy link
Copy Markdown
Owner

@tisfeng tisfeng commented Jan 16, 2026

This commit fixes the issue where click queries were being intercepted prematurely by the local event listener's leftMouseDown handler.

The problem was that the leftMouseDown event was always triggering the pop button dismissal logic before the click action could be processed, preventing valid click queries from working.

The fix adds a check to skip dismissal when the mouse click occurs within the pop button window itself, allowing the pop button's click action to fire properly before any dismissal logic runs.

This ensures that click queries work correctly while maintaining the pop button functionality.

Fix #1053

This commit fixes the issue where click queries were being intercepted prematurely by the local event listener's leftMouseDown handler.

The problem was that the leftMouseDown event was always triggering the pop button dismissal logic before the click action could be processed, preventing valid click queries from working.

The fix adds a check to skip dismissal when the mouse click occurs within the pop button window itself, allowing the pop button's click action to fire properly before any dismissal logic runs.

This ensures that click queries work correctly while maintaining the pop button functionality.
…loating window

This commit improves the user experience when clicking the pop button by ensuring the pop button window closes immediately before showing the floating window.

The change moves the `[self.popButtonWindow close]` call to the beginning of the `popButtonWindowClicked` method, before any other logic runs. This ensures:

1. The pop button window closes immediately on click
2. The floating window appears without visual interference from the closing pop button
3. Smoother transition between clicking the pop button and seeing the query results

Previously, the pop button window was closed at the end of the method, which could cause visual artifacts or delays in the UI transition.
@tisfeng
Copy link
Copy Markdown
Owner Author

tisfeng commented Jan 21, 2026

please review

@tisfeng tisfeng requested a review from AkaShark January 21, 2026 13:24
Copy link
Copy Markdown
Collaborator

@Jerry23011 Jerry23011 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I can confirm this issue was in 2.16.3. and is fixed with this PR.

@tisfeng tisfeng enabled auto-merge (squash) January 25, 2026 02:49
@tisfeng tisfeng merged commit a21f578 into dev Jan 25, 2026
3 checks passed
@tisfeng tisfeng deleted the fix/click-query branch January 25, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants