Merge pull request #17792 from Scroody/I-17741

fix: Default cursor not appearing when entering meeting.
This commit is contained in:
Anton Georgiev 2023-05-04 10:38:31 -04:00 committed by GitHub
commit 5f0686697a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,7 +241,8 @@ const Cursors = (props) => {
};
}, [cursorWrapper, whiteboardId, currentUser.presenter, whiteboardToolbarAutoHide]);
let cursorType = multiUserAccess || currentUser?.presenter ? TOOL_CURSORS[currentTool] || 'none' : 'default';
let cursorType = multiUserAccess || currentUser?.presenter ? TOOL_CURSORS[currentTool] : 'default';
if (isPanning) {
if (panGrabbing) {
cursorType = TOOL_CURSORS.grabbing;
@ -250,7 +251,6 @@ const Cursors = (props) => {
}
}
if (isMoving) cursorType = TOOL_CURSORS.moving;
return (
<span key={`cursor-wrapper-${whiteboardId}`} ref={cursorWrapper}>
<div style={{ height: '100%', cursor: cursorType }}>