# \[BUG-16346\] Button: onMouseDown event triggers on a Touch Event

**URL:** <https://forum.inductiveautomation.com/t/bug-16346-button-onmousedown-event-triggers-on-a-touch-event/33988>\
**Category:** Ignition Early Access\
**Tags:** perspective\
**Created:** [April 16, 2020, 8:32pm UTC](https://forum.inductiveautomation.com/t/bug-16346-button-onmousedown-event-triggers-on-a-touch-event/33988 "2020-04-16T20:32:05Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [April 17, 2020, 12:06am UTC](https://forum.inductiveautomation.com/t/bug-16346-button-onmousedown-event-triggers-on-a-touch-event/33988/6 "2020-04-17T00:06:58Z")

</div>

There is no difference between the desired behaviors of the onMouseDown and onTouchStart events. I’ve tried to just use the onMouseDown event but it does not always fire with the touch screen tablet. As the video shows the onMouseDown event only fires, randomly (may 1 out of 15 clicks).

I took a look at the mozilla link. Is it possible to utilize the preventDefault() function from within the perspective script?

---

_[View the full topic](https://forum.inductiveautomation.com/t/bug-16346-button-onmousedown-event-triggers-on-a-touch-event/33988)._
