Chromium does not provide a way for us to inject code just before renderer process is started, when Chromium reads system rubber banding setting. I tried to set NSScrollViewRubberbanding in a few places but they all have race conditions when creating multiple windows with different settings, see https://github.com/electron/electron/pull/13797 for an example.
This patch is the simplest solution (and probably the most decent one) that I can find, and it is very easy to maintain.
This patch makes the renderer process to use
--scroll-bounce
command line flag to enable rubber banding.This is required to fix https://github.com/electron/electron/issues/13493.
Chromium does not provide a way for us to inject code just before renderer process is started, when Chromium reads system rubber banding setting. I tried to set
NSScrollViewRubberbanding
in a few places but they all have race conditions when creating multiple windows with different settings, see https://github.com/electron/electron/pull/13797 for an example.This patch is the simplest solution (and probably the most decent one) that I can find, and it is very easy to maintain.