toggle transparency on model button hover for easier identification

This commit is contained in:
Stewart Allen 2022-04-21 16:53:31 -04:00
commit 9c46e8183a
3 changed files with 23 additions and 17 deletions

View file

@ -447,9 +447,10 @@ function space_init(data) {
});
space.mouse.onDrag((delta, offset, up = false) => {
const { mode, modes } = api;
if (delta && delta.event.shiftKey) {
selection.move(delta.x, delta.y, 0);
} else {
} else if (mode.is([ modes.object, modes.tool ])) {
return api.objects().length > 0;
}
});