[Cocoa] First scroll gesture in pinned, non-rubber-banding WKWebView may fail to...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Aug 2018 19:51:22 +0000 (19:51 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Aug 2018 19:51:22 +0000 (19:51 +0000)
commit5652c4fa82507049013bf92815d825f8a6e45b8b
tree77f6695815d9a7d32e6311b952528c1d94558a8c
parent0eb0b3f8db74d3447249fb19c521321f1190a0d4
[Cocoa] First scroll gesture in pinned, non-rubber-banding WKWebView may fail to initiate back/forward swipe
https://bugs.webkit.org/show_bug.cgi?id=188894
<rdar://problem/43651434>

Reviewed by Tim Horton.

* WebProcess/WebPage/EventDispatcher.cpp:
(WebKit::EventDispatcher::wheelEvent): Set the rubber-band state on the ScrollingTree
  synchronously rather than dispatching doing that to the scrolling thread. This is safe to
  do because ScrollingTree synchrnoizes access to the rubber-band state with an internal
  mutex.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp