void ScrollAnimatorWin::scrollToOffsetWithoutAnimation(const FloatPoint& offset) { stopAnimationTimerIfNeeded(&m_horizontalData); stopAnimationTimerIfNeeded(&m_verticalData); *m_horizontalData.m_currentPos = offset.x(); m_horizontalData.m_desiredPos = offset.x(); m_horizontalData.m_currentVelocity = 0; m_horizontalData.m_desiredVelocity = 0; *m_verticalData.m_currentPos = offset.y(); m_verticalData.m_desiredPos = offset.y(); m_verticalData.m_currentVelocity = 0; m_verticalData.m_desiredVelocity = 0; notifyPositionChanged(); }
void ScrollAnimatorNone::scrollToOffsetWithoutAnimation(const FloatPoint& offset) { stopAnimationTimerIfNeeded(); m_horizontalData.reset(); *m_horizontalData.m_currentPosition = offset.x(); m_horizontalData.m_desiredPosition = offset.x(); m_verticalData.reset(); *m_verticalData.m_currentPosition = offset.y(); m_verticalData.m_desiredPosition = offset.y(); notifyPositionChanged(); }
ScrollAnimatorNone::~ScrollAnimatorNone() { stopAnimationTimerIfNeeded(); }
ScrollAnimatorWin::~ScrollAnimatorWin() { stopAnimationTimerIfNeeded(&m_horizontalData); stopAnimationTimerIfNeeded(&m_verticalData); }
ScrollAnimator::~ScrollAnimator() { stopAnimationTimerIfNeeded(); }