# On\_click: distinguish between mouse up and down?

**URL:** <https://community.plotly.com/t/on-click-distinguish-between-mouse-up-and-down/76484>\
**Category:** 📊 Plotly Python\
**Created:** [June 28, 2023, 12:33pm UTC](https://community.plotly.com/t/on-click-distinguish-between-mouse-up-and-down/76484 "2023-06-28T12:33:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veneficus](https://avatars.discourse-cdn.com/v4/letter/v/a9a28c/32.png) [@Veneficus](https://community.plotly.com/u/Veneficus)\
**Post date:** [June 28, 2023, 12:33pm UTC](https://community.plotly.com/t/on-click-distinguish-between-mouse-up-and-down/76484/1 "2023-06-28T12:33:10Z")

</div>

Can I get the exact mouse event from the on\_click trigger?

This would allow me to construct a point-dragging mechanism inside Plotly by storing and removing the point on mouse-down and placing a new point on mouse-up. Storing the original point then allows UNDO.
