fix: initial previous positions
This commit is contained in:
parent
bcb4115fa0
commit
d55c35ca33
|
@ -31,6 +31,10 @@ export default class Position extends Component {
|
|||
}
|
||||
};
|
||||
}
|
||||
load(instance) {
|
||||
instance.lastX = instance.$$x;
|
||||
instance.lastY = instance.$$y;
|
||||
}
|
||||
static properties = {
|
||||
x: {type: 'float32'},
|
||||
y: {type: 'float32'},
|
||||
|
|
Loading…
Reference in New Issue
Block a user