From af42b4b86fee51841884852cc9c43c19c7d461d2 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 30 Aug 2017 16:11:21 +0200 Subject: [PATCH] Move `DummyScrollbarComponent` into its own GPU layer This was fixed back in bac9922 and, due to the same reasons, not having a separate layer causes the "Show scrollbars only when scrolling" setting on macOS to not work properly. --- src/text-editor-component.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/text-editor-component.js b/src/text-editor-component.js index 2d904c401..e22b53db8 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -2950,7 +2950,8 @@ class DummyScrollbarComponent { const outerStyle = { position: 'absolute', contain: 'strict', - zIndex: 1 + zIndex: 1, + willChange: 'transform' } const innerStyle = {} if (orientation === 'horizontal') {