@@ -366,7 +366,7 @@ void Scroller::InputKind(winrt::ScrollerInputKind const& value)
366
366
SetValue (s_InputKindProperty, box_value (value));
367
367
}
368
368
369
- winrt::ScrollerState Scroller::State ()
369
+ winrt::InteractionState Scroller::State ()
370
370
{
371
371
return m_state;
372
372
}
@@ -832,15 +832,15 @@ void Scroller::CustomAnimationStateEntered(
832
832
{
833
833
SCROLLER_TRACE_INFO (*this , TRACE_MSG_METH_INT, METH_NAME, this , args.RequestId ());
834
834
835
- UpdateState (winrt::ScrollerState::CustomAnimation );
835
+ UpdateState (winrt::InteractionState::Animation );
836
836
}
837
837
838
838
void Scroller::IdleStateEntered (
839
839
const winrt::InteractionTrackerIdleStateEnteredArgs& args)
840
840
{
841
841
SCROLLER_TRACE_INFO (*this , TRACE_MSG_METH_INT, METH_NAME, this , args.RequestId ());
842
842
843
- UpdateState (winrt::ScrollerState ::Idle);
843
+ UpdateState (winrt::InteractionState ::Idle);
844
844
845
845
if (!m_interactionTrackerAsyncOperations.empty ())
846
846
{
@@ -897,15 +897,15 @@ void Scroller::InertiaStateEntered(
897
897
TypeLogging::Float2ToString (m_endOfInertiaPosition).c_str (),
898
898
m_endOfInertiaZoomFactor);
899
899
900
- UpdateState (winrt::ScrollerState ::Inertia);
900
+ UpdateState (winrt::InteractionState ::Inertia);
901
901
}
902
902
903
903
void Scroller::InteractingStateEntered (
904
904
const winrt::InteractionTrackerInteractingStateEnteredArgs& args)
905
905
{
906
906
SCROLLER_TRACE_INFO (*this , TRACE_MSG_METH_INT, METH_NAME, this , args.RequestId ());
907
907
908
- UpdateState (winrt::ScrollerState::Interacting );
908
+ UpdateState (winrt::InteractionState::Interaction );
909
909
910
910
if (!m_interactionTrackerAsyncOperations.empty ())
911
911
{
@@ -1022,7 +1022,7 @@ float Scroller::ComputeChildLayoutOffsetDelta(ScrollerDimension dimension, float
1022
1022
1023
1023
float Scroller::ComputeEndOfInertiaZoomFactor () const
1024
1024
{
1025
- if (m_state == winrt::ScrollerState ::Inertia)
1025
+ if (m_state == winrt::InteractionState ::Inertia)
1026
1026
{
1027
1027
float endOfInertiaZoomFactor = m_endOfInertiaZoomFactor;
1028
1028
@@ -1039,7 +1039,7 @@ float Scroller::ComputeEndOfInertiaZoomFactor() const
1039
1039
1040
1040
winrt::float2 Scroller::ComputeEndOfInertiaPosition ()
1041
1041
{
1042
- if (m_state == winrt::ScrollerState ::Inertia)
1042
+ if (m_state == winrt::InteractionState ::Inertia)
1043
1043
{
1044
1044
float endOfInertiaZoomFactor = ComputeEndOfInertiaZoomFactor ();
1045
1045
winrt::float2 minPosition{};
@@ -4521,7 +4521,7 @@ void Scroller::UpdateTransformSource(
4521
4521
}
4522
4522
4523
4523
void Scroller::UpdateState (
4524
- const winrt::ScrollerState & state)
4524
+ const winrt::InteractionState & state)
4525
4525
{
4526
4526
if (state != m_state)
4527
4527
{
@@ -5575,7 +5575,7 @@ void Scroller::PostProcessZoomFactorChange(
5575
5575
// Returns True when an interruption was performed.
5576
5576
bool Scroller::InterruptViewChangeWithAnimation (InteractionTrackerAsyncOperationType interactionTrackerAsyncOperationType)
5577
5577
{
5578
- if (m_state == winrt::ScrollerState::CustomAnimation &&
5578
+ if (m_state == winrt::InteractionState::Animation &&
5579
5579
interactionTrackerAsyncOperationType == m_lastInteractionTrackerAsyncOperationType &&
5580
5580
SharedHelpers::IsRS5OrHigher () &&
5581
5581
!SharedHelpers::Is19H1OrHigher ())
0 commit comments