echarts [Bug] Resizing shouldn't call brushSelected event

vd8tlhqk  于 9个月前  发布在  Echarts
关注(0)|答案(3)|浏览(123)

Version

5.4.1

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

qybjjes1

qybjjes11#

Is there any news?

wljmcqd8

wljmcqd82#

Zoom also triggers parasite brushselected events
Demo

ruyhziif

ruyhziif3#

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

相关问题