[DE][SSE] Fix add gradient point
This commit is contained in:
parent
457aff48ac
commit
2c6a2c0993
|
@ -1876,6 +1876,7 @@ define([
|
|||
},
|
||||
|
||||
onAddGradientStep: function() {
|
||||
if (this.GradColor.colors.length > 9) return;
|
||||
var curIndex = this.GradColor.currentIdx;
|
||||
var pos = (this.GradColor.values[curIndex] + this.GradColor.values[curIndex < this.GradColor.colors.length - 1 ? curIndex + 1 : curIndex - 1]) / 2;
|
||||
|
||||
|
|
|
@ -1210,6 +1210,7 @@ define([
|
|||
},
|
||||
|
||||
onAddGradientStep: function() {
|
||||
if (this.GradColor.colors.length > 9) return;
|
||||
var curIndex = this.GradColor.currentIdx;
|
||||
var pos = (this.GradColor.values[curIndex] + this.GradColor.values[curIndex < this.GradColor.colors.length - 1 ? curIndex + 1 : curIndex - 1]) / 2;
|
||||
|
||||
|
|
|
@ -1234,6 +1234,7 @@ define([
|
|||
},
|
||||
|
||||
onAddGradientStep: function() {
|
||||
if (this.GradColor.colors.length > 9) return;
|
||||
var curIndex = this.GradColor.currentIdx;
|
||||
var pos = (this.GradColor.values[curIndex] + this.GradColor.values[curIndex < this.GradColor.colors.length - 1 ? curIndex + 1 : curIndex - 1]) / 2;
|
||||
|
||||
|
|
|
@ -1778,6 +1778,7 @@ define([
|
|||
},
|
||||
|
||||
onAddGradientStep: function() {
|
||||
if (this.GradColor.colors.length > 9) return;
|
||||
var curIndex = this.GradColor.currentIdx;
|
||||
var pos = (this.GradColor.values[curIndex] + this.GradColor.values[curIndex < this.GradColor.colors.length - 1 ? curIndex + 1 : curIndex - 1]) / 2;
|
||||
|
||||
|
|
|
@ -1645,6 +1645,7 @@ define([
|
|||
},
|
||||
|
||||
onAddGradientStep: function() {
|
||||
if (this.GradColor.colors.length > 9) return;
|
||||
var curIndex = this.GradColor.currentIdx;
|
||||
var pos = (this.GradColor.values[curIndex] + this.GradColor.values[curIndex < this.GradColor.colors.length - 1 ? curIndex + 1 : curIndex - 1]) / 2;
|
||||
|
||||
|
|
Loading…
Reference in a new issue