echarts-bot[bot] commented on issue #19314: URL: https://github.com/apache/echarts/issues/19314#issuecomment-1820113433
@somnusnrlq It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗 <details><summary><b>TRANSLATED</b></summary><br> **TITLE** [Bug] The declared custom graphics cannot control the drag direction **BODY** ### Version 5.4.3 ### Link to Minimal Reproduction https://jsfiddle.net/TokyYX/smjdkzvL/1/ ### Steps to Reproduce 1. A custom red dot has been added to the example so that it can only be dragged vertically. Now it can be dragged casually. 2. In the code, cx is controlled to a fixed value in the drag event, which is invalid. ### Current Behavior Want to control dragging in one direction ### Expected Behavior Want to control dragging in one direction ### Environment ```markdown - OS: windows11 - Browser: chrome - Framework: 119.0.6045.160 ``` ### Any additional comments? _No response_ </details> -- 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: commits-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org