From 85669f003882b17fe1fe8c8d44bb1bc7c38200a0 Mon Sep 17 00:00:00 2001 From: Scroody Date: Tue, 2 May 2023 15:32:10 -0300 Subject: [PATCH] Fix: Default cursor not appearing when entering meeting. --- .../ui/components/whiteboard/cursors/component.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/whiteboard/cursors/component.jsx b/bigbluebutton-html5/imports/ui/components/whiteboard/cursors/component.jsx index 118e264f59..6433b939b6 100644 --- a/bigbluebutton-html5/imports/ui/components/whiteboard/cursors/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/whiteboard/cursors/component.jsx @@ -221,7 +221,7 @@ const Cursors = (props) => { React.useEffect(() => { const currentCursor = cursorWrapper?.current; currentCursor?.addEventListener('mouseenter', start); - currentCursor?.addEventListener('touchstart', start); + currentCursor?.addEventListener('touchstart', start); currentCursor?.addEventListener('mouseleave', end); currentCursor?.addEventListener('mousedown', handleGrabbing); currentCursor?.addEventListener('mouseup', handleReleaseGrab); @@ -231,7 +231,7 @@ const Cursors = (props) => { return () => { currentCursor?.removeEventListener('mouseenter', start); - currentCursor?.addEventListener('touchstart', start); + currentCursor?.addEventListener('touchstart', start); currentCursor?.removeEventListener('mouseleave', end); currentCursor?.removeEventListener('mousedown', handleGrabbing); currentCursor?.removeEventListener('mouseup', handleReleaseGrab); @@ -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 (