remove unused event bindings
This commit is contained in:
parent
66c915a1ed
commit
195bbc1964
3 changed files with 2 additions and 17 deletions
|
|
@ -1,7 +1,6 @@
|
|||
/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
|
||||
|
||||
import { $ } from '../../../moto/webui.js';
|
||||
import { api } from '../api.js';
|
||||
|
||||
export function bind() {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -129,14 +129,6 @@ function startLeftAlign() {
|
|||
startIt();
|
||||
}
|
||||
|
||||
api.event.on('tool.camera.focus', startFocus);
|
||||
|
||||
api.event.on('tool.mesh.face-up', startFaceUp);
|
||||
|
||||
api.event.on('tool.mesh.lay-flat', startLayFlat);
|
||||
|
||||
api.event.on('tool.mesh.lefty', startLeftAlign);
|
||||
|
||||
function scale() {
|
||||
let cam = space.internals().camera;
|
||||
let dist = cam.position.distanceTo(pmesh.position);
|
||||
|
|
@ -145,8 +137,6 @@ function scale() {
|
|||
pmesh.scale.set(scale,scale,scale);
|
||||
}
|
||||
|
||||
api.event.on("space.view.zoom", scale);
|
||||
|
||||
api.event.on('mouse.hover', (ev) => {
|
||||
if (!enabled) {
|
||||
return;
|
||||
|
|
@ -194,7 +184,6 @@ api.event.on('mouse.hover.up', (ev) => {
|
|||
endIt();
|
||||
});
|
||||
|
||||
|
||||
export {
|
||||
cleanup,
|
||||
endIt,
|
||||
|
|
|
|||
Loading…
Reference in a new issue