feat(semantics): version scene edits and refine paint geometry
This commit is contained in:
@@ -144,3 +144,15 @@ test('camera snapshot restores exact pose, orthographic scale and orbit anchor a
|
||||
assert.deepEqual(next.c.snapshot(),old);next.c.dispose();
|
||||
}
|
||||
});
|
||||
|
||||
test('navigation blockers are independent and only their owners can release them',()=>{
|
||||
const f=fixture();f.c.setProjection('orthographic');
|
||||
const wheel=()=>f.event('wheel',{deltaX:0,deltaY:-120,deltaMode:0});
|
||||
const span=()=>f.c.camera.top;
|
||||
try{
|
||||
const initial=span();f.c.setNavigation(false);f.c.setNavigation(false,'semantic');
|
||||
f.c.setNavigation(true);wheel();assert.equal(span(),initial,'planner release must not clear semantic lock');
|
||||
f.c.setNavigation(false);f.c.setNavigation(true,'semantic');wheel();assert.equal(span(),initial,'semantic release must not clear planner lock');
|
||||
f.c.setNavigation(true);wheel();assert.ok(span()<initial,'input resumes immediately without blur');
|
||||
}finally{f.c.dispose();}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user