# Event Scripts and Z-Order

**URL:** <https://forum.inductiveautomation.com/t/event-scripts-and-z-order/36692>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [July 14, 2020, 5:01pm UTC](https://forum.inductiveautomation.com/t/event-scripts-and-z-order/36692 "2020-07-14T17:01:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [July 14, 2020, 5:01pm UTC](https://forum.inductiveautomation.com/t/event-scripts-and-z-order/36692/1 "2020-07-14T17:01:27Z")

</div>

I have a view where items on a conveyor can be shifted between 1 of 2 tracks via a turntable.  
The layering of this view has a number of overlays and the turntable object is under the overall conveyor layer. I need to have a “click” event script accessible on the turntable object in order to open its popup view. Unfortunately the overlying layer seems to prevent the click action. If I bring the turntable up in the Z-Order then the vehicles on the conveyor show under the turntable object. That is an annoyance but the customer does not like it. I would like to avoid an “invisible” object over the the turntable (and conveyor) to provide the click event functionality. So, is there a way to allow lower Z-Oder items to have this click event exposed when something else is overlaying them?

Thanks.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 14, 2020, 5:04pm UTC](https://forum.inductiveautomation.com/t/event-scripts-and-z-order/36692/2 "2020-07-14T17:04:41Z")

</div>

No.

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [July 14, 2020, 5:16pm UTC](https://forum.inductiveautomation.com/t/event-scripts-and-z-order/36692/3 "2020-07-14T17:16:21Z")

</div>

Once again my fears are realized! 🤣  
That’s what I figured but thought I’d ask the experts.  
Thanks!

---

<div class="post-metadata">

**Author:** ![adam.morales](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/adam.morales/32/3405_2.png) [@adam.morales](https://forum.inductiveautomation.com/u/adam.morales)\
**Post date:** [July 14, 2020, 5:41pm UTC](https://forum.inductiveautomation.com/t/event-scripts-and-z-order/36692/4 "2020-07-14T17:41:59Z")

</div>

If you have a custom theme, then you can add the CSS property `pointer-events: none;` to the vehicles.

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [July 14, 2020, 8:23pm UTC](https://forum.inductiveautomation.com/t/event-scripts-and-z-order/36692/5 "2020-07-14T20:23:15Z")

</div>

Unfortunately the vehicles have click event scripts on them as well. I’ll have to make due.  
Thanks.
