[PE] Fix duration for multiple animation

This commit is contained in:
Julia Radzhabova 2022-03-18 16:43:44 +03:00
parent cfab5abd36
commit 4101181092

View file

@ -206,7 +206,7 @@ define([
if (!item) { if (!item) {
var expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.view.txtSec + ')?\\s*$'); var expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.view.txtSec + ')?\\s*$');
if (!expr.exec(record.value)) { if (!expr.exec(record.value)) {
combo.setValue(this._state.Duration, this._state.Duration>=0 ? this._state.Duration + ' ' + this.view.txtSec : 1); combo.setValue(this._state.Duration, this._state.Duration>=0 ? this._state.Duration + ' ' + this.view.txtSec : '');
e.preventDefault(); e.preventDefault();
return false; return false;
} }
@ -447,7 +447,7 @@ define([
if (this._state.noAnimationDuration) if (this._state.noAnimationDuration)
view.cmbDuration.setValue(''); view.cmbDuration.setValue('');
else else
view.cmbDuration.setValue(this._state.Duration, this._state.Duration>=0 ? this._state.Duration + ' ' + this.view.txtSec : 1); view.cmbDuration.setValue(this._state.Duration, this._state.Duration>=0 ? this._state.Duration + ' ' + this.view.txtSec : '');
value = this.AnimationProperties.asc_getDelay(); value = this.AnimationProperties.asc_getDelay();
if (Math.abs(this._state.Delay - value) > 0.001 || if (Math.abs(this._state.Delay - value) > 0.001 ||