From 155f2d93df85dde14a438729a80b2cc1b1dc02c4 Mon Sep 17 00:00:00 2001 From: Andres Pineda Date: Fri, 18 Mar 2022 02:36:30 -0400 Subject: [PATCH] fix: field not available for target --- .../ScrollContentPresenter.Managed.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/ScrollContentPresenter.Managed.cs b/src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/ScrollContentPresenter.Managed.cs index 1657edfbd0e4..f5e00cbbcbc4 100644 --- a/src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/ScrollContentPresenter.Managed.cs +++ b/src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/ScrollContentPresenter.Managed.cs @@ -79,14 +79,22 @@ private static double GetHorizontalScrollWheelDelta(Size size, double delta) private bool _canHorizontallyScroll; public bool CanHorizontallyScroll { - get => _canHorizontallyScroll || _forceChangeToCurrentView; + get => _canHorizontallyScroll +#if __SKIA__ + || _forceChangeToCurrentView +#endif + ; set => _canHorizontallyScroll = value; } private bool _canVerticallyScroll; public bool CanVerticallyScroll { - get => _canVerticallyScroll || _forceChangeToCurrentView; + get => _canVerticallyScroll +#if __SKIA__ + || _forceChangeToCurrentView +#endif + ; set => _canVerticallyScroll = value; }