Skip to content

Commit fa249ec

Browse files
committed
imp: show grab cursor while moving apps
1 parent b00d773 commit fa249ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/entities/App.js

+3
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ export class App extends Entity {
217217
this.target.position.copy(this.root.position)
218218
this.target.quaternion.copy(this.root.quaternion)
219219
this.target.rotation.reorder('YXZ')
220+
document.body.style.cursor = 'grabbing'
220221
}
221222
if (this.control._lifting) {
222223
// if shift is down we're raising and lowering the app
@@ -283,6 +284,8 @@ export class App extends Entity {
283284
state: this.data.state,
284285
})
285286
this.build()
287+
this.target = null
288+
document.body.style.cursor = 'default'
286289
}
287290
}
288291
// if someone else is moving the app, interpolate updates

0 commit comments

Comments
 (0)