# Triggering onContextMenu Events from the Perspective IOS App

**URL:** <https://forum.inductiveautomation.com/t/triggering-oncontextmenu-events-from-the-perspective-ios-app/68638>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [January 16, 2023, 6:47pm UTC](https://forum.inductiveautomation.com/t/triggering-oncontextmenu-events-from-the-perspective-ios-app/68638 "2023-01-16T18:47:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nicoli.liedtke](https://avatars.discourse-cdn.com/v4/letter/n/ee59a6/32.png) [@nicoli.liedtke](https://forum.inductiveautomation.com/u/nicoli.liedtke)\
**Post date:** [January 17, 2023, 12:37am UTC](https://forum.inductiveautomation.com/t/triggering-oncontextmenu-events-from-the-perspective-ios-app/68638/2 "2023-01-17T00:37:36Z")

</div>

Unfortunately I think this is just expected behavior for React Apps on IOS. Since Ignition Perspective uses React this may just be the behavior to expect. The Github issue below discusses this issue for React. It does have a workaround fix that with some decent effort could probably be implemented into Ignition as well.

> <https://github.com/facebook/react/issues/17596>
>
> \<!--
> Note: if the issue is about documentation or the website, please file it… at:
> https://github.com/reactjs/reactjs.org/issues/new
> \--\>
> 
> \*\*Do you want to request a \*feature\* or report a \*bug\*?\*\*
> bug
> 
> \*\*What is the current behavior?\*\*
> onContextMenu event does not get fired on iOS 13.1 when long-pressing on an iPhone.
> 
> https://codesandbox.io/s/awesome-wilson-t1yy3
> 
> Clicking the gray rectangle should print 'onClick', which it does on all platforms I tested.
> Long-pressing/right-clicking on the gray rectangle should print 'onContextMenu', which it does on windows and android, but not on iOS. Tested on both chrome and safari.
> 
> \*\*What is the expected behavior?\*\*
> The expected behaviour on iOS is that long-pressing the gray rectangle should print 'onContextMenu'.
> 
> \*\*Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?\*\*
> React 16.12.0
> iOS 13.1

---

_[View the full topic](https://forum.inductiveautomation.com/t/triggering-oncontextmenu-events-from-the-perspective-ios-app/68638)._
