瀏覽代碼

fix(FIlmstrip): disable default overscrolling

With the default overscrolling policy when a user overscroll the
filmstrip the scroll focus is moved to the main window and it looks like
the scroll is not working.
master
Hristo Terezov 3 年之前
父節點
當前提交
f83559568d
共有 3 個檔案被更改,包括 4 行新增0 行删除
  1. 2
    0
      css/filmstrip/_horizontal_filmstrip.scss
  2. 1
    0
      css/filmstrip/_tile_view.scss
  3. 1
    0
      css/filmstrip/_vertical_filmstrip.scss

+ 2
- 0
css/filmstrip/_horizontal_filmstrip.scss 查看文件

@@ -63,6 +63,8 @@
63 63
     }
64 64
 
65 65
     .remote-videos {
66
+        overscroll-behavior: contain;
67
+
66 68
         & > div {
67 69
             transition: opacity 1s;
68 70
             position: absolute;

+ 1
- 0
css/filmstrip/_tile_view.scss 查看文件

@@ -15,6 +15,7 @@
15 15
         box-sizing: border-box;
16 16
         display: flex;
17 17
         flex-direction: column;
18
+        overscroll-behavior: contain;
18 19
     }
19 20
 
20 21
     .filmstrip__videos .videocontainer {

+ 1
- 0
css/filmstrip/_vertical_filmstrip.scss 查看文件

@@ -114,6 +114,7 @@
114 114
     .remote-videos {
115 115
         display: flex;
116 116
         transition: height .3s ease-in;
117
+        overscroll-behavior: contain;
117 118
 
118 119
         & > div {
119 120
             position: absolute;

Loading…
取消
儲存