Changeset 286732 in webkit
- Timestamp:
- Dec 8, 2021, 1:26:26 PM (5 years ago)
- Location:
- branches/safari-612.4.2.1-branch/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/WebPage/MomentumEventDispatcher.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612.4.2.1-branch/Source/WebKit/ChangeLog
r286731 r286732 1 2021-12-06 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r286566. rdar://problem/85928816 4 5 Momentum Event Dispatcher: Momentum phase runs backwards with natural scrolling disabled 6 https://bugs.webkit.org/show_bug.cgi?id=233894 7 <rdar://problem/86111948> 8 9 Reviewed by Simon Fraser. 10 11 * WebProcess/WebPage/MomentumEventDispatcher.cpp: 12 (WebKit::MomentumEventDispatcher::consumeDeltaForCurrentTime): 13 Only flip the deltas if the trackpad is configured to use "natural" 14 scrolling (in which "directionInvertedFromDevice" is true). 15 16 (WebKit::MomentumEventDispatcher::computeNextDelta): 17 Fix initial queue state logging to log both axes before setting the "did log" bit. 18 19 20 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@286566 268f45cc-cd09-0410-ab3c-d52691b4dbfc 21 22 2021-12-06 Tim Horton <timothy_horton@apple.com> 23 24 Momentum Event Dispatcher: Momentum phase runs backwards with natural scrolling disabled 25 https://bugs.webkit.org/show_bug.cgi?id=233894 26 <rdar://problem/86111948> 27 28 Reviewed by Simon Fraser. 29 30 * WebProcess/WebPage/MomentumEventDispatcher.cpp: 31 (WebKit::MomentumEventDispatcher::consumeDeltaForCurrentTime): 32 Only flip the deltas if the trackpad is configured to use "natural" 33 scrolling (in which "directionInvertedFromDevice" is true). 34 35 (WebKit::MomentumEventDispatcher::computeNextDelta): 36 Fix initial queue state logging to log both axes before setting the "did log" bit. 37 1 38 2021-12-06 Alan Coon <alancoon@apple.com> 2 39 -
branches/safari-612.4.2.1-branch/Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp
r286731 r286732 307 307 m_currentGesture.currentOffset += delta; 308 308 309 return -delta; 309 if (m_currentGesture.initiatingEvent->directionInvertedFromDevice()) 310 delta.scale(-1); 311 312 return delta; 310 313 } 311 314 … … 479 482 480 483 #if ENABLE(MOMENTUM_EVENT_DISPATCHER_TEMPORARY_LOGGING) 481 if (!m_currentGesture.didLogInitialQueueState) {484 if (!m_currentGesture.didLogInitialQueueState) 482 485 RELEASE_LOG(ScrollAnimations, "MomentumEventDispatcher initial historical deltas: average delta %f, average time %fms, event count %d", averageDelta, averageFrameIntervalMS, count); 483 m_currentGesture.didLogInitialQueueState = true;484 }485 486 #endif 486 487 … … 503 504 ); 504 505 506 #if ENABLE(MOMENTUM_EVENT_DISPATCHER_TEMPORARY_LOGGING) 507 m_currentGesture.didLogInitialQueueState = true; 508 #endif 509 505 510 return { unacceleratedDelta, acceleratedDelta }; 506 511 }
Note:
See TracChangeset
for help on using the changeset viewer.