You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "dexiaoly (via GitHub)" <gi...@apache.org> on 2025/02/21 21:10:42 UTC
[I] [Bug] Maps using echarts5.6 in vue3 do not drag and zoom properly [echarts]
dexiaoly opened a new issue, #20781:
URL: https://github.com/apache/echarts/issues/20781
### Version
5.6
### Link to Minimal Reproduction
https://github.com/dexiaoly/vue3_echarts5.6
### Steps to Reproduce
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Compile and Minify for Production
npm run build
### Current Behavior
I use vue3 and echarts5.6, but my zooming or dragging on top of the map tile doesn't work, I have to move the mouse over an empty space to zoom and drag to work
This code is normal if it is on HTML.
https://github.com/user-attachments/assets/36020f27-6e4f-458c-a394-c322c7065c78
### Expected Behavior
Zoom and drag the map normally
### Environment
```markdown
```
### Any additional comments?
_No response_
--
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: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Maps using echarts5.6 in vue3 do not drag and zoom properly [echarts]
Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #20781:
URL: https://github.com/apache/echarts/issues/20781#issuecomment-2677518459
Use shallow API for any complex third-party instance object.
```diff
- const myChart = ref(null);
+ const myChart = shallowRef(null);
```
Or change the `myChart` ref to a local variable.
See also [FAQ](https://echarts.apache.org/faq.html#others).
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Maps using echarts5.6 in vue3 do not drag and zoom properly [echarts]
Posted by "dexiaoly (via GitHub)" <gi...@apache.org>.
dexiaoly commented on issue #20781:
URL: https://github.com/apache/echarts/issues/20781#issuecomment-2678046948
Thank you very much, it solved my problem perfectly
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Maps using echarts5.6 in vue3 do not drag and zoom properly [echarts]
Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart closed issue #20781: [Bug] Maps using echarts5.6 in vue3 do not drag and zoom properly
URL: https://github.com/apache/echarts/issues/20781
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org