-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(12146): drag map into view once roamed away #13976
Conversation
Thanks for your contribution! |
Question: should I also update dist folder? I was expecting that dist is built before publishing, not kept in the repo. |
@KrzysztofMadejski thanks for contributing in Apache ECharts! First, you should use TypeScript since we have migrate to TS since 5.0. Second, Do not submit |
Then I think you should not version dist folder in the repo. I believe it should only be built while publishing to npm. Second: where should I use ts? I just removed one line, not added anything. |
@KrzysztofMadejski Hi, thanks for the contribution. We don't maintain multiple release branches, v4.x won't have new versions. The fix should always be based on the latest code in the master branch. About the |
Oh, that's very sad to hear you do not support old versions. BTW: You can use Github Releases to serve "compiled" versions: https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/managing-releases-in-a-repository |
This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR. We are sorry for this but 2 years is a long time and the code base has been changed a lot. Thanks for your contribution anyway. |
closing as I'm not working anymore with echarts |
Brief Information
This pull request is in the type of:
What does this PR do?
Map can be dragged into the view once roamed away. I branched off v4.9.0 tag so it could be fixed within 4.9.0 pipeline still. I haven't seen a branch for v4 development.
Fixed issues
This solves #12146
Details
Before: What was the problem?
see #12146
for explanation and video.
After: How is it fixed in this PR?
Check if mousedown even falls into map rect box is removed. All events within canvas are handled.
Usage
Are there any API changes?
Related test cases or examples to use the new APIs
I added
map-drag-out-and-in.html
visual test case. As it is my first PR I'm not sure if I done it right.I'm also not sure if I didn't break anything, but unit tests are passing.
Others
Merging options
Other information