susiwen8 commented on code in PR #16904:
URL: https://github.com/apache/echarts/pull/16904#discussion_r854099902
##########
src/action/roamHelper.ts:
##########
@@ -45,7 +45,7 @@ export function updateCenterAndZoom(
}
) {
const previousZoom = view.getZoom();
- const center = view.getCenter();
+ const center = view.getDefaultCenter();
Review Comment:
Could we normalize `center` at `View`
https://github.com/apache/echarts/blob/master/src/coord/View.ts#L130
Looks like `Tree` and `Geo` also have this issue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]