fixed typo

This commit is contained in:
jonasengelmann 2022-03-30 23:41:43 +02:00
parent fb8bafc6a0
commit ef8e7ad9c5

View File

@ -143,7 +143,7 @@ $.Viewport = function( options ) {
this._oldCenterX = this.centerSpringX.current.value;
this._oldCenterY = this.centerSpringY.current.value;
this._oldZoom = this.zoomSpring.current.value;
this._oldDegree = this.degreesSpring.current.value;
this._oldDegrees = this.degreesSpring.current.value;
this._setContentBounds(new $.Rect(0, 0, 1, 1), 1);
@ -1006,13 +1006,13 @@ $.Viewport.prototype = {
var changed = this.centerSpringX.current.value !== this._oldCenterX ||
this.centerSpringY.current.value !== this._oldCenterY ||
this.zoomSpring.current.value !== this._oldZoom ||
this.degreesSpring.current.value !== this._oldDegree;
this.degreesSpring.current.value !== this._oldDegrees;
this._oldCenterX = this.centerSpringX.current.value;
this._oldCenterY = this.centerSpringY.current.value;
this._oldZoom = this.zoomSpring.current.value;
this._oldDegree = this.degreesSpring.current.value;
this._oldDegrees = this.degreesSpring.current.value;
return changed;
},