# onMouseUp event does not fire if mouse is dragged after clicking down

**URL:** <https://forum.inductiveautomation.com/t/onmouseup-event-does-not-fire-if-mouse-is-dragged-after-clicking-down/46458>\
**Category:** Ignition\
**Created:** [May 6, 2021, 9:53pm UTC](https://forum.inductiveautomation.com/t/onmouseup-event-does-not-fire-if-mouse-is-dragged-after-clicking-down/46458 "2021-05-06T21:53:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![matthew.ayre](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew.ayre/32/19499_2.png) [@matthew.ayre](https://forum.inductiveautomation.com/u/matthew.ayre)\
**Post date:** [May 7, 2021, 10:43am UTC](https://forum.inductiveautomation.com/t/onmouseup-event-does-not-fire-if-mouse-is-dragged-after-clicking-down/46458/2 "2021-05-07T10:43:10Z")

</div>

> [@nick.christensen1](#):
>
> If you press the mouse click down, then move the mouse, and then let go the onMouseDown event will fire but onMouseUp will not.

This is expected behaviour. This allows the user to not perform the action if they pressed it by mistake (for the mouse up not triggering).

> [@nick.christensen1](#):
>
> leave it in the bounds IF you have an image on the button

This is a bit weird, and I guess it has something to do with how Ignition embeds images into buttons?

Before going any further with this, have a good read of this thread: [Very Concerning Read/Write Issues. Important information for all users](http://forum.inductiveautomation.com/t/very-concerning-read-write-issues-important-information-for-all-users/18583)

Implementing momentary presses can be hazardous depending on how they're used.

---

_[View the full topic](https://forum.inductiveautomation.com/t/onmouseup-event-does-not-fire-if-mouse-is-dragged-after-clicking-down/46458)._
