|
@@ -4,6 +4,8 @@ const logger = require("jitsi-meet-logger").getLogger(__filename);
|
4
|
4
|
|
5
|
5
|
var UI = {};
|
6
|
6
|
|
|
7
|
+import _ from 'lodash';
|
|
8
|
+
|
7
|
9
|
import Chat from "./side_pannels/chat/Chat";
|
8
|
10
|
import SidePanels from "./side_pannels/SidePanels";
|
9
|
11
|
import Avatar from "./avatar/Avatar";
|
|
@@ -20,7 +22,6 @@ import Filmstrip from "./videolayout/Filmstrip";
|
20
|
22
|
import SettingsMenu from "./side_pannels/settings/SettingsMenu";
|
21
|
23
|
import Profile from "./side_pannels/profile/Profile";
|
22
|
24
|
import Settings from "./../settings/Settings";
|
23
|
|
-import { debounce } from "../util/helpers";
|
24
|
25
|
|
25
|
26
|
import { updateDeviceList } from '../../react/features/base/devices';
|
26
|
27
|
import {
|
|
@@ -278,13 +279,13 @@ UI.start = function () {
|
278
|
279
|
|
279
|
280
|
sharedVideoManager = new SharedVideoManager(eventEmitter);
|
280
|
281
|
if (!interfaceConfig.filmStripOnly) {
|
281
|
|
- let debouncedShowToolbar
|
282
|
|
- = debounce(
|
|
282
|
+ let throttledShowToolbar
|
|
283
|
+ = _.throttle(
|
283
|
284
|
() => UI.showToolbar(),
|
284
|
285
|
100,
|
285
|
286
|
{ leading: true, trailing: false });
|
286
|
287
|
|
287
|
|
- $("#videoconference_page").mousemove(debouncedShowToolbar);
|
|
288
|
+ $("#videoconference_page").mousemove(throttledShowToolbar);
|
288
|
289
|
|
289
|
290
|
// Initialise the recording module.
|
290
|
291
|
if (config.enableRecording) {
|