Merge pull request #18201 from ramonlsouza/fix-force-panning

fix: panning with space bar shortcut does not work
This commit is contained in:
Ramón Souza 2023-06-23 15:44:44 -03:00 committed by GitHub
commit 7b5328ade5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -734,7 +734,8 @@ export default function Whiteboard(props) {
if (reason && isPresenter && slidePosition && (reason.includes('zoomed') || reason.includes('panned'))) {
const camera = tldrawAPI?.getPageState()?.camera;
if (currentCameraPoint[curPageId] && !isPanning) {
const isForcePanning = tldrawAPI?.isForcePanning;
if (currentCameraPoint[curPageId] && !isPanning && !isForcePanning) {
camera.point = currentCameraPoint[curPageId];
}