Merge pull request #1610 from ONLYOFFICE/fix/bugfix

[DE] Fix Bug 55855
This commit is contained in:
Julia Radzhabova 2022-03-03 17:45:45 +03:00 committed by GitHub
commit 0a9bd26c32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {