Add test and error handling for transform pointer intent

This commit is contained in:
2026-04-12 00:34:51 +02:00
parent 0c62c51494
commit 9ae6601d62
2 changed files with 82 additions and 0 deletions

View File

@@ -5106,6 +5106,10 @@ export class ViewportHost {
);
if (transformPointerIntent.commitActiveTransform) {
if (this.currentTransformSession.kind !== "active") {
throw new Error("Active transform intent resolved without an active session.");
}
event.preventDefault();
this.transformCommitHandler?.(this.currentTransformSession);
return;