amcharts / amcharts4

The most advanced amCharts charting library for JavaScript and TypeScript apps.
https://www.amcharts.com/
1.16k stars 322 forks source link

Click & Drag on the map while the map is still moving causes subsequent drag not to work. #3648

Closed Andrew1431 closed 3 years ago

Andrew1431 commented 3 years ago

Bug description

Beginning to drag the map while it's momentum is still dampening results in the drag action being ignored until you release the mouse, causing the map to feel entirely unresponsive if dragging around quickly. Happens on every map in every example.

https://codepen.io/team/amcharts/pen/RBaBBL

Environment (if applicable)

Happening to me on chrome, haven't tested elsewhere.

Additional context

martynasma commented 3 years ago

This can be resolved by disabling inertia:

chart.seriesContainer.inert = false;

Hope you find it acceptable.

Andrew1431 commented 3 years ago

Very, thank you!

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days