Browse Source
Merge pull request #7219 from AvaloniaUI/fixes/7218-fix-scroll-gesture-recognizer-for-transformed-visuals
Use pointer position relative to the scroll gesture recognizer target
pull/7235/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Input/GestureRecognizers/ScrollGestureRecognizer.cs
|
|
|
@ -85,7 +85,7 @@ namespace Avalonia.Input.GestureRecognizers |
|
|
|
{ |
|
|
|
if (e.Pointer == _tracking) |
|
|
|
{ |
|
|
|
var rootPoint = e.GetPosition(null); |
|
|
|
var rootPoint = e.GetPosition(_target); |
|
|
|
if (!_scrolling) |
|
|
|
{ |
|
|
|
if (CanHorizontallyScroll && Math.Abs(_trackedRootPoint.X - rootPoint.X) > ScrollStartDistance) |
|
|
|
|