waterWang opened a new pull request, #21722: URL: https://github.com/apache/echarts/pull/21722
Fixes #20178 ## Problem When dragging a dataZoom slider handle and releasing the mouse **without moving it away** (i.e. the mouse stays over the handle), the handle's label disappears even though the pointer is still over the handle. ## Root cause During a drag, the handle's `onmouseout` can fire (the pointer briefly leaves the handle hit area as it moves), which sets `SliderZoomView._isOverDataInfoTriggerArea = false`. On `dragend`, `_onDragEnd()` checks that flag and, because it is `false`, calls `_showDataInfo(false)` which hides the label — even though the mouse is still sitting over the handle. ## Fix Accept the `dragend` event in `_onDragEnd(e)`. When the flag is `false`, only hide the label if the drag did **not** end on a handle or the move zone. If the drag released over a handle / move zone, keep the label visible so it matches the "mouse is still over the handle" expectation. This also forwards the event from `_onActualMoveZoneDragEnd` so the move-zone drag path behaves the same way. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
