Merge pull request #20026 from Arthurk12/bbb/2.7/multiuser-non-presenter-error

fix(whiteboard): check before manipulating pan tool class list
This commit is contained in:
Anton Georgiev 2024-04-16 19:57:32 -04:00 committed by GitHub
commit f5be95da32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,9 +145,12 @@ export default function Whiteboard(props) {
} else { } else {
setIsPanning(false); setIsPanning(false);
setPanSelected(false); setPanSelected(false);
if (panButton) {
// only presenter has the pan button
panButton.classList.add('selectOverride'); panButton.classList.add('selectOverride');
panButton.classList.remove('select'); panButton.classList.remove('select');
} }
}
}; };
const setDockPosition = (setSetting) => { const setDockPosition = (setSetting) => {