diff --git a/src/lib/viewport.js b/src/lib/viewport.js index 384b2599..451b8eb5 100644 --- a/src/lib/viewport.js +++ b/src/lib/viewport.js @@ -134,10 +134,14 @@ export function Viewport(inspector) { transformControls.setMode(mode); }); - Events.on('snapchanged', (dist) => { + Events.on('translationsnapchanged', (dist) => { transformControls.setTranslationSnap(dist); }); + Events.on('rotationsnapchanged', (dist) => { + transformControls.setRotationSnap(dist); + }); + Events.on('transformspacechanged', (space) => { transformControls.setSpace(space); });