[DE] Fix Bug 55855

This commit is contained in:
Julia Radzhabova 2022-03-03 16:00:03 +03:00
parent 2e075bcbd3
commit 073d8a4e74

View file

@ -1274,26 +1274,15 @@ define([
this._state.imgPositionY = 50;
}
this.imagePositionLabel.text(Math.round(this._state.imgPositionX) + ',' + Math.round(this._state.imgPositionY));
if (this._sendUndoPoint) {
this.api.setStartPointHistory();
this._sendUndoPoint = false;
this.updateslider = setInterval(_.bind(this.imgPositionApplyFunc, this, type), 100);
}
},
onImagePositionChangeComplete: function (type, field, newValue, oldValue) {
clearInterval(this.updateslider);
if (type === 'x') {
this._state.imgPositionX = newValue;
} else {
this._state.imgPositionY = newValue;
}
if (!this._sendUndoPoint) { // start point was added
this.api.setEndPointHistory();
this.imgPositionApplyFunc(type);
}
this._sendUndoPoint = true;
this.imgPositionApplyFunc(type);
},
imgPositionApplyFunc: function (type) {