Skip to content

Commit 5fc8e0a

Browse files
committed
merge升级后的fix
1 parent a39be73 commit 5fc8e0a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/component/dataRange.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,10 +835,19 @@ define(function (require) {
835835
}
836836

837837
if (e._type == 'filler') {
838+
_fillerShae.style.x = e.style.x;
839+
_fillerShae.style.y = e.style.y;
838840
_syncHandleShape();
839841
}
840842
else {
841-
//e.position = [e.style.x - e.style._x, e.style.y - e.style._y];
843+
if (e.id == _startShape.id) {
844+
_startShape.style.x = e.style.x;
845+
_startShape.style.y = e.style.y;
846+
}
847+
else {
848+
_endShape.style.x = e.style.x;
849+
_endShape.style.y = e.style.y;
850+
}
842851
_syncFillerShape(e);
843852
}
844853

src/component/dataZoom.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,19 @@ define(function (require) {
589589
}
590590

591591
if (e._type == 'filler') {
592+
_fillerShae.style.x = e.style.x;
593+
_fillerShae.style.y = e.style.y;
592594
_syncHandleShape();
593595
}
594596
else {
597+
if (e.id == _startShape.id) {
598+
_startShape.style.x = e.style.x;
599+
_startShape.style.y = e.style.y;
600+
}
601+
else {
602+
_endShape.style.x = e.style.x;
603+
_endShape.style.y = e.style.y;
604+
}
595605
_syncFillerShape();
596606
}
597607

0 commit comments

Comments
 (0)