diff --git a/src/pivot.ts b/src/pivot.ts index c0a49cf..a0060a3 100644 --- a/src/pivot.ts +++ b/src/pivot.ts @@ -66,7 +66,7 @@ const registerPivotEvents = (events: Events) => { }); // pivot mode - let origin: PivotOrigin = 'center'; + let origin: PivotOrigin = 'boundCenter'; const setOrigin = (o: PivotOrigin) => { if (o !== origin) { diff --git a/src/splats-transform-handler.ts b/src/splats-transform-handler.ts index c19e0a3..c459335 100644 --- a/src/splats-transform-handler.ts +++ b/src/splats-transform-handler.ts @@ -68,7 +68,7 @@ class SplatsTransformHandler implements TransformHandler { placePivot() { const origin = this.events.invoke('pivot.origin'); - this.splat.getPivot(origin === 'center' ? 'center' : 'boundCenter', false, transform); + this.splat.getPivot(origin === 'center' ? 'center' : 'boundCenter', true, transform); this.events.fire('pivot.place', transform); } diff --git a/src/ui/bottom-toolbar.ts b/src/ui/bottom-toolbar.ts index 8cf907e..b7b8a64 100644 --- a/src/ui/bottom-toolbar.ts +++ b/src/ui/bottom-toolbar.ts @@ -98,7 +98,7 @@ class BottomToolbar extends Container { const origin = new Button({ id: 'bottom-toolbar-origin', - class: 'bottom-toolbar-toggle', + class: ['bottom-toolbar-toggle', 'active'], icon: 'E189' });