Skip to content

Commit ddc20ae

Browse files
committed
fix: fix an issue where overlays may not be moved after being created.
1 parent 149b7c8 commit ddc20ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/Overlay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ export default abstract class OverlayImp implements Overlay {
672672
difValue = point.value - this._prevPressedPoint.value
673673
}
674674
this.points = this._prevPressedPoints.map(p => {
675-
if (isNumber(p.dataIndex) && isNumber(p.timestamp)) {
675+
if (isNumber(p.timestamp)) {
676676
p.dataIndex = timeScaleStore.timestampToDataIndex(p.timestamp)
677677
}
678678
const newPoint = { ...p }

0 commit comments

Comments
 (0)