Skip to content

Commit

Permalink
Merge pull request #382 from klorman/master
Browse files Browse the repository at this point in the history
Fix IsScrollInertiaEnabled warning.
  • Loading branch information
SKProCH committed Jun 13, 2024
2 parents cb29548 + dfa8f67 commit 2eee672
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Material.Styles/Resources/Themes/ScrollViewer.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@
Name="PART_ContentPresenter"
Background="{TemplateBinding Background}"
Padding="{TemplateBinding Padding}"
ScrollViewer.IsScrollInertiaEnabled="{TemplateBinding IsScrollInertiaEnabled}"
HorizontalSnapPointsType="{TemplateBinding HorizontalSnapPointsType}"
VerticalSnapPointsType="{TemplateBinding VerticalSnapPointsType}"
HorizontalSnapPointsAlignment="{TemplateBinding HorizontalSnapPointsAlignment}"
VerticalSnapPointsAlignment="{TemplateBinding VerticalSnapPointsAlignment}">
<ScrollContentPresenter.GestureRecognizers>
<ScrollGestureRecognizer
CanHorizontallyScroll="{Binding CanHorizontallyScroll, ElementName=PART_ContentPresenter}"
CanVerticallyScroll="{Binding CanVerticallyScroll, ElementName=PART_ContentPresenter}"
IsScrollInertiaEnabled="{Binding IsScrollInertiaEnabled, RelativeSource={RelativeSource TemplatedParent}}"/>
CanVerticallyScroll="{Binding CanVerticallyScroll, ElementName=PART_ContentPresenter}"
IsScrollInertiaEnabled="{Binding (ScrollViewer.IsScrollInertiaEnabled), ElementName=PART_ContentPresenter}"/>
</ScrollContentPresenter.GestureRecognizers>
</ScrollContentPresenter>

Expand Down

0 comments on commit 2eee672

Please sign in to comment.