Browse Source

fix(remote-control): mouse events

master
Hristo Terezov 5 years ago
parent
commit
5940f2890a
1 changed files with 8 additions and 6 deletions
  1. 8
    6
      react/features/filmstrip/components/web/Filmstrip.js

+ 8
- 6
react/features/filmstrip/components/web/Filmstrip.js View File

161
         // will get updated without replacing the DOM. If the known DOM gets
161
         // will get updated without replacing the DOM. If the known DOM gets
162
         // modified, then the views will get blown away.
162
         // modified, then the views will get blown away.
163
 
163
 
164
-        const remoteVideosStyle = { };
164
+        const filmstripStyle = { };
165
         const filmstripRemoteVideosContainerStyle = {};
165
         const filmstripRemoteVideosContainerStyle = {};
166
         let remoteVideoContainerClassName = 'remote-videos-container';
166
         let remoteVideoContainerClassName = 'remote-videos-container';
167
 
167
 
168
         switch (this.props._currentLayout) {
168
         switch (this.props._currentLayout) {
169
         case LAYOUTS.VERTICAL_FILMSTRIP_VIEW:
169
         case LAYOUTS.VERTICAL_FILMSTRIP_VIEW:
170
-            // Adding 8px for the 2px margins and 2px borders on the left and right. Also adding 7px for the scrollbar.
171
-            remoteVideosStyle.maxWidth = (interfaceConfig.FILM_STRIP_MAX_HEIGHT || 120) + 15;
170
+            // Adding 18px for the 2px margins, 2px borders on the left and right and 5px padding on the left and right.
171
+            // Also adding 7px for the scrollbar.
172
+            filmstripStyle.maxWidth = (interfaceConfig.FILM_STRIP_MAX_HEIGHT || 120) + 25;
172
             break;
173
             break;
173
         case LAYOUTS.TILE_VIEW: {
174
         case LAYOUTS.TILE_VIEW: {
174
             // The size of the side margins for each tile as set in CSS.
175
             // The size of the side margins for each tile as set in CSS.
184
         }
185
         }
185
 
186
 
186
         return (
187
         return (
187
-            <div className = { `filmstrip ${this.props._className}` }>
188
+            <div
189
+                className = { `filmstrip ${this.props._className}` }
190
+                style = { filmstripStyle }>
188
                 { this.props._filmstripOnly
191
                 { this.props._filmstripOnly
189
                     ? <Toolbar /> : this._renderToggleButton() }
192
                     ? <Toolbar /> : this._renderToggleButton() }
190
                 <div
193
                 <div
191
                     className = { this.props._videosClassName }
194
                     className = { this.props._videosClassName }
192
-                    id = 'remoteVideos'
193
-                    style = { remoteVideosStyle }>
195
+                    id = 'remoteVideos'>
194
                     <div
196
                     <div
195
                         className = 'filmstrip__videos'
197
                         className = 'filmstrip__videos'
196
                         id = 'filmstripLocalVideo'
198
                         id = 'filmstripLocalVideo'

Loading…
Cancel
Save