Skip to content

Commit

Permalink
remove height transition
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpin committed Sep 14, 2023
1 parent ead8ffe commit 4d30472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
12 changes: 1 addition & 11 deletions react/features/toolbox/middleware.web.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { AnyAction } from 'redux';

import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
import { LAYOUTS } from '../video-layout/constants';
import { getCurrentLayout } from '../video-layout/functions.any';

import {
CLEAR_TOOLBOX_TIMEOUT,
SET_FULL_SCREEN,
SET_TOOLBOX_TIMEOUT,
SET_TOOLBOX_VISIBLE
SET_TOOLBOX_TIMEOUT
} from './actionTypes';

import './subscriber.web';
Expand All @@ -29,13 +26,6 @@ MiddlewareRegistry.register(store => next => action => {
break;
}

case SET_TOOLBOX_VISIBLE: {
if (getCurrentLayout(store.getState()) === LAYOUTS.VERTICAL_FILMSTRIP_VIEW) {
document.getElementsByClassName('remote-videos')?.[0]?.classList.add('height-transition');
}
break;
}

case SET_FULL_SCREEN:
return _setFullScreen(next, action);

Expand Down
16 changes: 1 addition & 15 deletions react/features/toolbox/subscriber.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ StateListenerRegistry.register(
/* listener */(isVisible, store) => {
const { innerWidth, innerHeight } = window;

if (isVisible) {
store.dispatch(clientResized(innerWidth, innerHeight));
}
store.dispatch(clientResized(innerWidth, innerHeight));
VideoLayout.onResize(true);
setTimeout(() => {
const container = document.getElementsByClassName('remote-videos')?.[0];

if (container) {
container.classList.remove('height-transition');
// eslint-disable-next-line no-extra-parens
(container as HTMLElement).style.overflow = 'auto';
}
if (!isVisible) {
store.dispatch(clientResized(innerWidth, innerHeight));
}
}, 300);
});

0 comments on commit 4d30472

Please sign in to comment.