Changeset 286566 in webkit
- Timestamp:
- Dec 6, 2021, 1:31:41 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/WebPage/MomentumEventDispatcher.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r286564 r286566 1 2021-12-06 Tim Horton <timothy_horton@apple.com> 2 3 Momentum Event Dispatcher: Momentum phase runs backwards with natural scrolling disabled 4 https://bugs.webkit.org/show_bug.cgi?id=233894 5 <rdar://problem/86111948> 6 7 Reviewed by Simon Fraser. 8 9 * WebProcess/WebPage/MomentumEventDispatcher.cpp: 10 (WebKit::MomentumEventDispatcher::consumeDeltaForCurrentTime): 11 Only flip the deltas if the trackpad is configured to use "natural" 12 scrolling (in which "directionInvertedFromDevice" is true). 13 14 (WebKit::MomentumEventDispatcher::computeNextDelta): 15 Fix initial queue state logging to log both axes before setting the "did log" bit. 16 1 17 2021-12-06 Brady Eidson <beidson@apple.com> 2 18 -
trunk/Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp
r286537 r286566 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.