Skip to content

Commit

Permalink
View cube bugfix (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbethke authored Nov 7, 2024
1 parent 7c7701c commit f719d7a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ui/view-cube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ class ViewCube extends Container {
pz: circle(b, true, 'Z'),
};

shapes.px.children[0].addEventListener('pointerdown', () => { events.fire('camera.align', 'px'); });
shapes.py.children[0].addEventListener('pointerdown', () => { events.fire('camera.align', 'py'); });
shapes.pz.children[0].addEventListener('pointerdown', () => { events.fire('camera.align', 'pz'); });
shapes.nx.children[0].addEventListener('pointerdown', () => { events.fire('camera.align', 'nx'); });
shapes.ny.children[0].addEventListener('pointerdown', () => { events.fire('camera.align', 'ny'); });
shapes.nz.children[0].addEventListener('pointerdown', () => { events.fire('camera.align', 'nz'); });
shapes.px.children[0].addEventListener('pointerdown', (e) => { events.fire('camera.align', 'px'); e.stopPropagation(); });
shapes.py.children[0].addEventListener('pointerdown', (e) => { events.fire('camera.align', 'py'); e.stopPropagation(); });
shapes.pz.children[0].addEventListener('pointerdown', (e) => { events.fire('camera.align', 'pz'); e.stopPropagation(); });
shapes.nx.children[0].addEventListener('pointerdown', (e) => { events.fire('camera.align', 'nx'); e.stopPropagation(); });
shapes.ny.children[0].addEventListener('pointerdown', (e) => { events.fire('camera.align', 'ny'); e.stopPropagation(); });
shapes.nz.children[0].addEventListener('pointerdown', (e) => { events.fire('camera.align', 'nz'); e.stopPropagation(); });

this.dom.appendChild(svg);

Expand Down

0 comments on commit f719d7a

Please sign in to comment.