apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.41k stars 19.61k forks source link

[Bug] Resizing shouldn't call brushSelected event #18097

Open ashokgelal opened 1 year ago

ashokgelal commented 1 year ago

Version

5.4.1

Link to Minimal Reproduction

https://codepen.io/Justineo/pen/GRBgbRb

Steps to Reproduce

  1. Select some scatter dots using brush selection.
  2. Look at console, handler is called as it should
  3. Now trigger a resize (either resizing the window or resizing the dev tool view)

Current Behavior

Brush selected handler is called multiple times

Expected Behavior

since no brush-selection has taken place, it shouldn't

helgasoft commented 1 year ago

Yes, bug confirmed. "Parasite" brushselected events are triggered on resize even without prior manual brush selection. Demo Code

EgorPopovPP commented 1 year ago

Is there any news?

relife-ibs commented 1 year ago

Zoom also triggers parasite brushselected events Demo