From 0f1cd53739b64896e07e771f680e3830d010e3e5 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Mon, 4 Nov 2024 16:22:38 -0500 Subject: [PATCH] Reapply "Fully prevent overscroll" This reverts commit eae96142ace8bc0c33d06c32cb45e26651c368c5. Still needed for view builds. --- src/common/stylesheets/view.scss | 3 +++ webpack.config.js | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/common/stylesheets/view.scss diff --git a/src/common/stylesheets/view.scss b/src/common/stylesheets/view.scss new file mode 100644 index 00000000..df82b437 --- /dev/null +++ b/src/common/stylesheets/view.scss @@ -0,0 +1,3 @@ +html, body { + overscroll-behavior: none; +} diff --git a/webpack.config.js b/webpack.config.js index 2e44f262..c7957ff3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -159,7 +159,10 @@ function generateViewConfig(build) { mode: build === 'view-dev' ? 'development' : 'production', devtool: build === 'web' ? false : 'source-map', entry: { - view: ['./src/index.' + build + '.js'] + view: [ + './src/index.' + build + '.js', + './src/common/stylesheets/view.scss' + ], }, output: { path: path.resolve(__dirname, './build/' + build),