fix zoom issues with sketch mode (#2664)

* cam stuff start

* more progress

* mostly done

* fix snapshot tests

* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)

* fix

* fix ubuntu

* more tweaks fixes

* add test

* more FE fixes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Kurt Hutten
2024-06-18 16:08:41 +10:00
committed by GitHub
parent 0add26cf61
commit 570fd827ed
20 changed files with 647 additions and 436 deletions

View File

@ -540,7 +540,7 @@ function codeToIdSelections(
.filter(Boolean) as any
}
export function sendSelectEventToEngine(
export async function sendSelectEventToEngine(
e: MouseEvent | React.MouseEvent<HTMLDivElement, MouseEvent>,
el: HTMLVideoElement,
streamDimensions: { streamWidth: number; streamHeight: number }
@ -551,7 +551,7 @@ export function sendSelectEventToEngine(
el,
...streamDimensions,
})
const result: Promise<Models['SelectWithPoint_type']> = engineCommandManager
const result: Models['SelectWithPoint_type'] = await engineCommandManager
.sendSceneCommand({
type: 'modeling_cmd_req',
cmd: {