Skip to content

Commit

Permalink
feat: cascade down update to Presenter
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Apr 7, 2022
1 parent fe8df2a commit 760906e
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,24 @@ partial class ScrollViewer

/// <summary>
/// Gets or set whether the <see cref="ScrollViewer"/> will allow scrolling outside of the ScrollViewer's Child bound.
/// </summary>
internal bool ForceChangeToCurrentView { get; set; } = false;
/// </summary>
///
private bool _forceChangeToCurrentView = false;
internal bool ForceChangeToCurrentView
{
get => _forceChangeToCurrentView;
set
{
_forceChangeToCurrentView = value;

#if __WASM__ || __SKIA__
if (_presenter != null)
{
_presenter.ForceChangeToCurrentView = value;
}
#endif
}
}
internal bool IsInDirectManipulation { get; }
internal bool TemplatedParentHandlesScrolling { get; set; }
internal Func<AutomationPeer>? AutomationPeerFactoryIndex { get; set; }
Expand Down

0 comments on commit 760906e

Please sign in to comment.