Browse Source
Merge pull request #8946 from workgroupengineering/fixes/empty-statment
fix: empty statment
pull/8949/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
src/Avalonia.Base/Data/Core/Plugins/ObservableStreamPlugin.cs
-
src/Avalonia.Base/Input/GestureRecognizers/ScrollGestureRecognizer.cs
-
src/Avalonia.Base/Layout/FlowLayoutAlgorithm.cs
|
|
|
@ -42,7 +42,7 @@ namespace Avalonia.Data.Core.Plugins |
|
|
|
if (target is IObservable<object?> result) |
|
|
|
{ |
|
|
|
return result; |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
// If the observable returns a value type then we need to call Observable.Select on it.
|
|
|
|
// First get the type of T in `IObservable<T>`.
|
|
|
|
|
|
|
|
@ -71,7 +71,7 @@ namespace Avalonia.Input.GestureRecognizers |
|
|
|
{ |
|
|
|
EndGesture(); |
|
|
|
_tracking = e.Pointer; |
|
|
|
_gestureId = ScrollGestureEventArgs.GetNextFreeId();; |
|
|
|
_gestureId = ScrollGestureEventArgs.GetNextFreeId(); |
|
|
|
_trackedRootPoint = e.GetPosition(_target); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -523,7 +523,7 @@ namespace Avalonia.Layout |
|
|
|
{ |
|
|
|
firstRealizedElement = _elementManager.GetAt(0); |
|
|
|
firstBounds = _elementManager.GetLayoutBoundsForRealizedIndex(0); |
|
|
|
firstDataIndex = _elementManager.GetDataIndexFromRealizedRangeIndex(0);; |
|
|
|
firstDataIndex = _elementManager.GetDataIndexFromRealizedRangeIndex(0); |
|
|
|
|
|
|
|
int last = _elementManager.GetRealizedElementCount() - 1; |
|
|
|
lastRealizedElement = _elementManager.GetAt(last); |
|
|
|
|