victor HF Staff commited on
Commit
f43a7e1
·
1 Parent(s): 3bf15b0

Prevent overscroll on html and body elements

Browse files

Added 'overscroll-behavior: none;' to html and body in main.css to prevent scroll chaining and improve scroll handling.

Files changed (1) hide show
  1. src/styles/main.css +5 -0
src/styles/main.css CHANGED
@@ -4,6 +4,11 @@
4
  @tailwind components;
5
  @tailwind utilities;
6
 
 
 
 
 
 
7
  @layer components {
8
  .btn {
9
  @apply inline-flex flex-shrink-0 cursor-pointer select-none items-center justify-center whitespace-nowrap outline-none transition-all focus:ring disabled:cursor-default;
 
4
  @tailwind components;
5
  @tailwind utilities;
6
 
7
+ html,
8
+ body {
9
+ overscroll-behavior: none;
10
+ }
11
+
12
  @layer components {
13
  .btn {
14
  @apply inline-flex flex-shrink-0 cursor-pointer select-none items-center justify-center whitespace-nowrap outline-none transition-all focus:ring disabled:cursor-default;