We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 943bf0c commit a86adf2Copy full SHA for a86adf2
1 file changed
packages/melonjs/src/geometries/observablePoint.ts
@@ -35,6 +35,7 @@ export class ObservablePoint {
35
},
36
});
37
38
+ this.callBackEnabled = true;
39
this._revoke = revoke;
40
this._point = proxy;
41
@@ -50,8 +51,11 @@ export class ObservablePoint {
50
51
* @returns Reference to this object for method chaining.
52
*/
53
set(x = 0, y = 0) {
54
+ this.callBackEnabled = false;
55
this._point.x = x;
56
this._point.y = y;
57
+ this._callback?.();
58
59
return this;
60
}
61
0 commit comments