Skip to content

Commit

Permalink
Prevent scroll chaining.
Browse files Browse the repository at this point in the history
  • Loading branch information
flachware committed Sep 2, 2019
1 parent 4973b9f commit bbf95db
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/stylesheets/components/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
.sidebar-body {
flex: 1 1 0;
overflow-y: auto;
overscroll-behavior: contain;
padding-top: $space-xs;

.frameless:not(.is-full-screen) & {
Expand Down
1 change: 1 addition & 0 deletions src/stylesheets/components/esper/_panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
.adjustments {
flex: 1 1 0;
overflow-y: scroll;
overscroll-behavior: contain;
padding: 19px $default-padding-horizontal 0; // todo
margin: auto;
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions src/stylesheets/components/item/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
height: 100%; // Prevent vertical scrollbar due to horizontal scrollbar
overflow-x: auto;
overflow-y: hidden; // Prevent horizontal scrollbar due to column borders
overscroll-behavior: contain;
contain: strict;

.metadata-head,
Expand Down
1 change: 1 addition & 0 deletions src/stylesheets/components/tag/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
.panel & {
flex: 1 1 0;
overflow-y: scroll;
overscroll-behavior: contain;
padding: $space-min 0 0;
position: relative;

Expand Down
1 change: 1 addition & 0 deletions src/stylesheets/partials/_scroll-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.scroll-container {
flex: 1 1 0;
overflow-y: scroll;
overscroll-behavior: contain;
contain: strict;

.over & {
Expand Down

0 comments on commit bbf95db

Please sign in to comment.