Merge pull request #18201 from ramonlsouza/fix-force-panning
fix: panning with space bar shortcut does not work
This commit is contained in:
commit
7b5328ade5
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user