# Buttons on Perspective Views not working

**URL:** <https://forum.inductiveautomation.com/t/buttons-on-perspective-views-not-working/59490>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [May 12, 2022, 7:19am UTC](https://forum.inductiveautomation.com/t/buttons-on-perspective-views-not-working/59490 "2022-05-12T07:19:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 12, 2022, 5:32pm UTC](https://forum.inductiveautomation.com/t/buttons-on-perspective-views-not-working/59490/2 "2022-05-12T17:32:54Z")

</div>

Does the 'onClick' event work for you?  
I never use the 'onActionPerformed' event on buttons. I always use the onClick event.

I had similar problems with touchscreen not always receiving mouse events.

> [@\[BUG-16346\] Button: onMouseDown event triggers on a Touch Event](https://forum.inductiveautomation.com/t/bug-16346-button-onmousedown-event-triggers-on-a-touch-event/33988/6):
>
> 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?

If you're using at least 8.1.15 it may be worth looking into Pointer events.

---

_[View the full topic](https://forum.inductiveautomation.com/t/buttons-on-perspective-views-not-working/59490)._
