Skip to content

Commit

Permalink
fix(toolbox) prevent toolbox shift up on stage view (jitsi#14155)
Browse files Browse the repository at this point in the history
  • Loading branch information
horymury authored Dec 14, 2023
1 parent d9599d3 commit af4488d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion react/features/toolbox/subscriber.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ StateListenerRegistry.register(
isTileView: isLayoutTileView(state)
};
},
/* listener */({ clientHeight, isTileView }, store) => {
/* listener */({ clientHeight, isTileView }, store, { isTileView: previousIsTileView }) => {
if (!isTileView) {
if (previousIsTileView) {
store.dispatch(setShiftUp(false));
}

return;
}
throttledCheckOverlap(clientHeight, store);
Expand Down

0 comments on commit af4488d

Please sign in to comment.