mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-24 03:45:00 +00:00
fix: onSHAPressed avoid right click nav
- When the right click button is pressed it should not navigate to the parent. Navigation actions only should execute with the left button.
This commit is contained in:
parent
941ea4a695
commit
8cd0b2dd15
1 changed files with 3 additions and 1 deletions
|
@ -151,7 +151,9 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnSHAPressed(object sender, PointerPressedEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.CommitDetail detail && sender is Control { DataContext: string sha })
|
||||
var point = e.GetCurrentPoint(this);
|
||||
|
||||
if (point.Properties.IsLeftButtonPressed && DataContext is ViewModels.CommitDetail detail && sender is Control { DataContext: string sha })
|
||||
{
|
||||
detail.NavigateTo(sha);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue