mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-11 23:57:21 -08:00
fix: onSHAPressed avoid right click nav (#770)
Some checks failed
Some checks failed
- 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
0b73f7b483
commit
22de6673bc
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…
Reference in a new issue