Changeset 286631 in webkit
- Timestamp:
- Dec 7, 2021, 4:44:05 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/WebPageProxy.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r286625 r286631 1 2021-12-07 Simon Fraser <simon.fraser@apple.com> 2 3 [Scroll Momentum Generator] Pages lose ability to momentum scroll after dragging between displays 4 https://bugs.webkit.org/show_bug.cgi?id=233948 5 rdar://86110813 6 7 Reviewed by Tim Horton. 8 9 This is a conservative fix for the bug. When a view moves to a new screen, WebPageProxy 10 needs to unregister for full speed updates using the old displayID, and register 11 using the new one. 12 13 Longer term, it would be better if "full speed updates" was a per-observer concept, 14 but that would mean registering an observer while wheel events are being received, 15 which needs a bit more thought. 16 17 * UIProcess/WebPageProxy.cpp: 18 (WebKit::WebPageProxy::windowScreenDidChange): 19 1 20 2021-12-07 Cameron McCormack <heycam@apple.com> 2 21 -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r286602 r286631 3959 3959 void WebPageProxy::windowScreenDidChange(PlatformDisplayID displayID, std::optional<unsigned> nominalFramesPerSecond) 3960 3960 { 3961 #if HAVE(CVDISPLAYLINK) 3962 if (hasRunningProcess() && m_displayID && m_registeredForFullSpeedUpdates) 3963 process().processPool().setDisplayLinkForDisplayWantsFullSpeedUpdates(*m_process->connection(), *m_displayID, false); 3964 3965 m_registeredForFullSpeedUpdates = false; 3966 #endif 3967 3961 3968 m_displayID = displayID; 3962 3969 … … 3966 3973 send(Messages::EventDispatcher::PageScreenDidChange(m_webPageID, displayID)); 3967 3974 send(Messages::WebPage::WindowScreenDidChange(displayID, nominalFramesPerSecond)); 3975 #if HAVE(CVDISPLAYLINK) 3976 updateDisplayLinkFrequency(); 3977 #endif 3968 3978 } 3969 3979
Note:
See TracChangeset
for help on using the changeset viewer.