You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/06/14 11:26:08 UTC

[GitHub] [incubator-echarts] tmtron opened a new issue #10675: Brush drag gets stuck when the mouse leaves the chart area

tmtron opened a new issue #10675: Brush drag gets stuck when the mouse leaves the chart area
URL: https://github.com/apache/incubator-echarts/issues/10675
 
 
   ### Version
   4.2.1
   
   ### Reproduction link
   [https://jsfiddle.net/tmtron/kdaqhpjv/92/](https://jsfiddle.net/tmtron/kdaqhpjv/92/)
   
   ### Steps to reproduce
   * left-click in the chart area and HOLD the left button
   * now the brush-drag is active: we can move the mouse around and the area will follow
   * but when we exit the chart area (e.g. far to the right on the grey area) and then release the mouse button (still on the grey area), the brush-drag mode gets stuck
     * what I mean is, when you now move the mouse back to the chart area, the brush-drag is still active: i.e. the mouse move will resize the brush area although the left-mouse button is NOT pressed down anymore
     * this will only stop when you make another click inside the chart area
   
   ![BrushOut](https://user-images.githubusercontent.com/20422904/59506150-cfe3b480-8ea7-11e9-92ef-8de21400e5dd.gif)
   
   
   ### What is expected?
   the brush mode should stop (same as releasing the pressed mouse button)
   
   ### What is actually happening?
   the brush mode ist stuck: when you release the mouse button outside the canvas, and reenter, the brush is still following the mouse movements
   
   As a workaround I tried to fire a 'mouseup' event when the 'globalout' event occurs, but that does not work.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org