jupyter-widgets-contrib / ipycanvas

Interactive Canvas in Jupyter
https://ipycanvas.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
685 stars 62 forks source link

feature request for mouse drag #332

Open bhomass opened 1 year ago

bhomass commented 1 year ago

to implement drag and drop.

martinRenou commented 1 year ago

You can implement drag and drop using the click and move events of the mouse. See this notebook for an example of drag and drop implementation https://github.com/martinRenou/ipycanvas/blob/master/examples/drag_and_drop_example.ipynb.

bhomass commented 1 year ago

thanks, but I also need to handle mouse down. It would be better if that was a separate handle_mouse_drag event handler.