# Bug - OnTouchEnd PopUp Action with Modal and Background Dismissible doesn't open

**URL:** <https://forum.inductiveautomation.com/t/bug-ontouchend-popup-action-with-modal-and-background-dismissible-doesnt-open/35920>\
**Category:** Ignition Early Access\
**Created:** [June 23, 2020, 3:19pm UTC](https://forum.inductiveautomation.com/t/bug-ontouchend-popup-action-with-modal-and-background-dismissible-doesnt-open/35920 "2020-06-23T15:19:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [June 23, 2020, 3:19pm UTC](https://forum.inductiveautomation.com/t/bug-ontouchend-popup-action-with-modal-and-background-dismissible-doesnt-open/35920/1 "2020-06-23T15:19:27Z")

</div>

When using a Popup Action for “OnTouchEnd”, if you have modal and background dismissible selected the screen will not stay open. You see a brief flicker, but then it disappears. If you make the action a script and open the popup using scripting everything works fine. Additionally, if you use the Popup action and select only background dismissible the popup opens, but in my case opens behind the popup that had the button to launch the new popup. When using scripting, it opens normally.

Bottom line - the Popup Action does not behave the same as popups fired from a scripting action and the Popup action is the one with issues.

I am using 8.0.10.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/1/41bacf139ae27385073cae53b86edf3f1b4a27d1.png)

---

<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:** [June 26, 2020, 4:26pm UTC](https://forum.inductiveautomation.com/t/bug-ontouchend-popup-action-with-modal-and-background-dismissible-doesnt-open/35920/2 "2020-06-26T16:26:39Z")

</div>

Just a thought....  
The browser could be firing the onClick or possibly the mouseUp event after the onTouchEnd event.

I've been having some issues with touch/click events for some time.

> [@\[BUG-16346\] Button: onMouseDown event triggers on a Touch Event](http://forum.inductiveautomation.com/t/bug-16346-button-onmousedown-event-triggers-on-a-touch-event/33988):
>
> My Perspective project (currently stable 8.0.11 (b2020041411)) will primarily use Windows 10 tablets (Microsoft Surface Pro) with touch screens but there is a need for it to be compatible with desktop PCs (mouse clicks) too. Both will use chrome browsers. I need a button on a view to complete the same script whether it is touched or clicked. I quickly realized that I needed to use the onTouch[something] and onMouse[something] events to distinguish mouse clicks and screen touches on the same …

Maybe pointer events could help you too?

> **[Add Pointer Events into perspective | Ignition Features and Ideas | Inductive...](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/add-pointer-events-into-perspective)**
>
> Pointer events are DOM events that are fired for a pointing device. They are designed to create a single DOM event model to handle pointing input devices such

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [June 26, 2020, 5:00pm UTC](https://forum.inductiveautomation.com/t/bug-ontouchend-popup-action-with-modal-and-background-dismissible-doesnt-open/35920/3 "2020-06-26T17:00:13Z")

</div>

No other actions are configured and the fact that it works differently when using a script or when using the canned “Popup” action signals to me there is a bug that should be fixed.

Side note - the primary devices we are designing for are touch screens, but we do test using Chrome Dev Mode which can simulate touch events by clicking the mouse.
