electron/patches/common/chromium/scroll_bounce_flag.patch

13 lines
546 B
Diff

diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 06f7d4487997..e1deb93f8b0d 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1644,7 +1644,7 @@ bool RenderThreadImpl::IsGpuMemoryBufferCompositorResourcesEnabled() {
}
bool RenderThreadImpl::IsElasticOverscrollEnabled() {
- return is_elastic_overscroll_enabled_;
+ return base::CommandLine::ForCurrentProcess()->HasSwitch("scroll-bounce");
}
scoped_refptr<base::SingleThreadTaskRunner>