# Perspective Touch Context Menu

**URL:** <https://forum.inductiveautomation.com/t/perspective-touch-context-menu/52620>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 2, 2021, 1:42pm UTC](https://forum.inductiveautomation.com/t/perspective-touch-context-menu/52620 "2021-11-02T13:42:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [November 2, 2021, 1:42pm UTC](https://forum.inductiveautomation.com/t/perspective-touch-context-menu/52620/1 "2021-11-02T13:42:39Z")

</div>

Hi,

I would like to create a custom context menu for Perspective.

I can easily open a view at the mouse cursor using the onContextMenu actions for browsers with a mouse.

How can I do this for touch devices? I would like to preserve the current onClick behaviour that opens the standard device faceplate, but open a quick action context menu using something like a long press.

I am thinking along the lines of using the time difference between onTouchStart and onTouchEnd, but that seems more difficult than it needs to be.

Any better ideas?

Regards,  
Deon

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [November 3, 2021, 7:46pm UTC](https://forum.inductiveautomation.com/t/perspective-touch-context-menu/52620/2 "2021-11-03T19:46:11Z")

</div>

Is there a way to have a normal click event and a long press event on Perspective touch screens?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [November 4, 2021, 7:48am UTC](https://forum.inductiveautomation.com/t/perspective-touch-context-menu/52620/3 "2021-11-04T07:48:53Z")

</div>

use the event onContextMenu.  
Touchscreens should automatically send this event after a long press

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [November 4, 2021, 9:16am UTC](https://forum.inductiveautomation.com/t/perspective-touch-context-menu/52620/4 "2021-11-04T09:16:51Z")

</div>

It seems like it was working using onContextMenu all along on Windows and Android.

I was testing on iOS and it does not work there.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [November 4, 2021, 11:54am UTC](https://forum.inductiveautomation.com/t/perspective-touch-context-menu/52620/5 "2021-11-04T11:54:56Z")

</div>

> [@deon.korb](#):
>
> iOS

Might be ios version related, but ios is always a special case... not much to do but try updating your ios browser/device and see it it helps
