Merge pull request #17676 from Scroody/fix-draggable-cameras-no-presentation
Fix: Draggable cameras when presentation minimized.
This commit is contained in:
commit
65e16518dc
@ -6,6 +6,7 @@ import { INITIAL_INPUT_STATE } from '/imports/ui/components/layout/initState';
|
||||
import { ACTIONS, CAMERADOCK_POSITION, PANELS } from '../enums';
|
||||
import Storage from '/imports/ui/services/storage/session';
|
||||
import { isPresentationEnabled } from '/imports/ui/services/features';
|
||||
import Draggable from 'react-draggable';
|
||||
|
||||
const windowWidth = () => window.document.documentElement.clientWidth;
|
||||
const windowHeight = () => window.document.documentElement.clientHeight;
|
||||
@ -645,7 +646,7 @@ const CustomLayout = (props) => {
|
||||
left: cameraDockBounds.left,
|
||||
right: cameraDockBounds.right,
|
||||
tabOrder: 4,
|
||||
isDraggable: !isMobile && !isTablet,
|
||||
isDraggable: !isMobile && !isTablet && presentationInput.isOpen,
|
||||
resizableEdge: {
|
||||
top: (input.cameraDock.position === CAMERADOCK_POSITION.CONTENT_BOTTOM)
|
||||
|| (input.cameraDock.position === CAMERADOCK_POSITION.SIDEBAR_CONTENT_BOTTOM
|
||||
|
Loading…
Reference in New Issue
Block a user