fix force panning

This commit is contained in:
Ramón Souza 2023-03-27 10:38:05 -03:00
parent 5b0a0d7cf6
commit b3754570ed

View File

@ -897,7 +897,7 @@ export default function Whiteboard(props) {
const webcams = document.getElementById('cameraDock'); const webcams = document.getElementById('cameraDock');
const dockPos = webcams?.getAttribute('data-position'); const dockPos = webcams?.getAttribute('data-position');
if (currentTool && !isPanning) tldrawAPI?.selectTool(currentTool); if (currentTool && !isPanning && !tldrawAPI?.isForcePanning) tldrawAPI?.selectTool(currentTool);
const editableWB = ( const editableWB = (
<Styled.EditableWBWrapper onKeyDown={handleOnKeyDown}> <Styled.EditableWBWrapper onKeyDown={handleOnKeyDown}>