mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
fix: unable to scroll more long scrollbar when shorter one reached its limit (#1806)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -1259,7 +1259,7 @@ namespace SourceGit.Views
|
||||
if (diff.ScrollOffset.NearlyEquals(_scrollViewer.Offset))
|
||||
return;
|
||||
|
||||
if (IsPointerOver || !e.OffsetDelta.NearlyEquals(Vector.Zero))
|
||||
if (IsPointerOver || e.OffsetDelta.SquaredLength > 1.0f)
|
||||
{
|
||||
diff.ScrollOffset = _scrollViewer.Offset;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user