-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There's a weird interaction where, if you left-click on an item in the file list, then right-click to open the context menu, then left- click on another entry, the application thinks you just tried to drag the first item onto the second one. This seems to be fixed by doing three things: (1) Explicitly clear the drag start point when the context menu is opened. This is required because the file list doesn't get any mouse events while the context menu is open, so the click that closes the menu looks like an instantaneous drag if the start point is set. (2) Explicitly clear the drag start point if we see mouse movement in the file list and the left button isn't being held down. This shouldn't be necessary with #1 in place, and it doesn't solve the problem on its own, but it might help with some other edge case. (3) Pass "this" instead of "null" to e.GetPosition(), which was making things more complicated by occasionally choosing a different object to use as the top-left corner after the context menu closed. Yay WPF. (issue #20)
- Loading branch information
Showing
2 changed files
with
23 additions
and
7 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