-
Notifications
You must be signed in to change notification settings - Fork 812
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add One-Hand mice wheel scroll diff and merge (#2435) (8). Remove CMo…
…useHook::TimerProc()
- Loading branch information
Showing
4 changed files
with
8 additions
and
20 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
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
a8befca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also tried to prevent the message from being passed on in WM_RBUTTONUP. It seems to work fine in MergeEditView, but it causes the side effect of multiple selections in DirView. The most reliable way is to add a check condition in OnContextMenu.
a8befca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another way to avoid side effects is to prevent the message from being passed on in WM_RBUTTONDOWN and WM_RBUTTONUP message events at the same time. If there is no scroll wheel combination operation when the right button is released, Post a WM_CONTEXTMENU message to pop up the right-click menu.
But without WM_RBUTTONDOWN,this feature will lost:
MergeEditView.cpp
Maybe Post WM_RBUTTONDOWN then WM_RBUTTONUP instead of WM_CONTEXTMENU can resolve this, but be careful of message processing dead loop.
a8befca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! For now, I'll give up on preventing the context menu from appearing for the Image compare window, Binary compare window, and Webpage compare window.