# Perspective Touchscreen Long Press

**URL:** <https://forum.inductiveautomation.com/t/perspective-touchscreen-long-press/67766>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 19, 2022, 2:10am UTC](https://forum.inductiveautomation.com/t/perspective-touchscreen-long-press/67766 "2022-12-19T02:10:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Lynch](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@Matthew\_Lynch](https://forum.inductiveautomation.com/u/Matthew_Lynch)\
**Post date:** [December 19, 2022, 2:10am UTC](https://forum.inductiveautomation.com/t/perspective-touchscreen-long-press/67766/1 "2022-12-19T02:10:03Z")

</div>

We have an issue with longpress on buttons on touchscreen HMI using perspective. A copy Menu popsup ? we have disabled "right mouse" emulation under control panel "touch and pen" we want to use the buttons for jogging motors. Problem occurs on any button including navigation buttons.

---

<div class="post-metadata">

**Author:** ![Dechen\_Chuteng](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@Dechen\_Chuteng](https://forum.inductiveautomation.com/u/Dechen_Chuteng)\
**Post date:** [December 21, 2022, 7:23pm UTC](https://forum.inductiveautomation.com/t/perspective-touchscreen-long-press/67766/2 "2022-12-21T19:23:54Z")

</div>

Hi Matthew\_Lynch,

Are you able to provide a screenshot of the issue? Just ran a quick test launching a Perspective client and this seems to be an expected behavior when you longpress on a button. Does it look like it's also highlighting the text and showing up as the opaque copy when you are longpressing and dragging the button across the screen?

I would highly recommend opening up a support ticket with us so that a Support Engineer can help you troubleshoot this further. [https://inductiveautomation.com/support/home/](https://inductiveautomation.com/support/home/)

---

<div class="post-metadata">

**Author:** ![Levi\_Taylor](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@Levi\_Taylor](https://forum.inductiveautomation.com/u/Levi_Taylor)\
**Post date:** [March 10, 2023, 2:52pm UTC](https://forum.inductiveautomation.com/t/perspective-touchscreen-long-press/67766/3 "2023-03-10T14:52:03Z")

</div>

Has a solution been found to this? I am experiencing the same issue on a jog button. In Control Panel \> Pen and Touch, "Press and Hold" has been disabled.

---

<div class="post-metadata">

**Author:** ![Levi\_Taylor](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@Levi\_Taylor](https://forum.inductiveautomation.com/u/Levi_Taylor)\
**Post date:** [March 10, 2023, 3:52pm UTC](https://forum.inductiveautomation.com/t/perspective-touchscreen-long-press/67766/4 "2023-03-10T15:52:55Z")

</div>

Solution:  
In the designer, and on a button you do not wish to be selectable, add the key value pair of "user-select: none" in the textStyle properties of the component. This should make text for that component no longer selectable.

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [March 10, 2023, 3:55pm UTC](https://forum.inductiveautomation.com/t/perspective-touchscreen-long-press/67766/5 "2023-03-10T15:55:58Z")

</div>

I'm curious to hear how you've set up your jog button. I hear it's fraught with all kinds of potential issues to try to jog equipment from an HMI, let alone Ignition.  
That's probably a whole different topic however.

---

<div class="post-metadata">

**Author:** ![Stephen\_Kreyling](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@Stephen\_Kreyling](https://forum.inductiveautomation.com/u/Stephen_Kreyling)\
**Post date:** [April 19, 2023, 8:11pm UTC](https://forum.inductiveautomation.com/t/perspective-touchscreen-long-press/67766/6 "2023-04-19T20:11:10Z")

</div>

Using Perspective 8.1.26 and Chrome browser on a touch screen, to resolve the problem that the text on a button was selected with a long press on the button, under Styles, I added the stylesheet.css with the entry:

```auto
* {
-webkit-touch-callout: none;	/* for Safari on iOS only */
-webkit-user-select: none;	/* for Safari */
user-select: none;
}

```

(The entry was suggested in [Perspective Mouse event, disable cut/copy/paste on iPad - #11 by Chris\_Kociolek](https://forum.inductiveautomation.com/t/perspective-mouse-event-disable-cut-copy-paste-on-ipad/25650/11); the \* means the styling will apply to every component)

For individual components, adding the key value pair of "user-select: none" in the textStyle properties of the component also works.

Adding the event handler suggested in [Perspective disable right click menu on touchscreen](https://forum.inductiveautomation.com/t/perspective-disable-right-click-menu-on-touchscreen/65595) did not work.
