Disable rubberband scrolling for IE11

This commit is contained in:
Bruno Windels 2020-08-07 18:15:17 +01:00
parent e054dfb623
commit eb92b9a086
3 changed files with 11 additions and 7 deletions

View file

@ -51,7 +51,7 @@ body {
} }
.RoomPlaceholderView, .RoomView { .RoomPlaceholderView, .RoomView {
flex: 1 0 0px; flex: 1 0 0;
min-width: 0; min-width: 0;
} }
@ -71,7 +71,7 @@ body {
} }
.TimelinePanel ul { .TimelinePanel ul {
flex: 1 0 0px; flex: 1 0 0;
} }
.RoomHeader { .RoomHeader {

View file

@ -49,7 +49,7 @@ limitations under the License.
.LeftPanel div.description { .LeftPanel div.description {
margin: 0; margin: 0;
flex: 1 1 0px; flex: 1 1 0;
min-width: 0; min-width: 0;
} }

View file

@ -22,16 +22,20 @@ limitations under the License.
@import url('avatar.css'); @import url('avatar.css');
@import url('spinner.css'); @import url('spinner.css');
/* only if the body contains the whole app (e.g. we're not embedded in a page), make some changes */
body.brawl {
/* make sure to disable rubber-banding and pull to refresh in a PWA if we'd end up having a scrollbar */
overscroll-behavior: none;
/* disable rubberband scrolling on document in IE11 */
overflow: hidden;
}
.brawl { .brawl {
margin: 0; margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
background-color: black; background-color: black;
color: white; color: white;
/* make sure to disable rubber-banding and pull to refresh in a PWA if we'd end up having a scrollbar */
overscroll-behavior: none;
/* disable rubberband scrolling on document in IE11 */
overflow: hidden;
} }
.hiddenWithLayout { .hiddenWithLayout {