Skip to content

Commit 4e98f86

Browse files
author
Valentin Vetter
committed
docs(viewport): explain hack
1 parent 0880079 commit 4e98f86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/modules/viewport/src/main/resources/view/viewport-module/ViewportModule.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export class ViewportModule {
6767
get: () => viewport.input.isMouseDown ? 'grabbing' : 'grab'
6868
})
6969

70+
// Switch the GraphicEntityModule's Container with our Viewport
7071
entity.container.removeChildren()
7172
viewport.addChild(entity.graphics)
7273
const parent = entity.container.parent

0 commit comments

Comments
 (0)