Skip to main content
Participating Frequently
August 6, 2022
Question

MouseUp event on overlapping images

  • August 6, 2022
  • 1 reply
  • 1039 views

 

Hello,

  I am using a MouseUp script on both Image9_af_image (star) and Image8_af_image (peach background). However, when they are overlapping, as in the screenshot below, and I click within the star's box, only Image8_af_image receives the MouseUp event. Is there a way to make Image9_af_image receive it instead or have both receive it?

This topic has been closed for replies.

1 reply

try67
Braniac
August 6, 2022

Having overlapping fields is a bad idea, since you can't (explicitly) control their z-order (ie. which one is on top and which one is at the bottom of the "stack"), so no, you can't do that.

AriBlackAuthor
Participating Frequently
August 6, 2022

Can I add a MouseUp event to the document itself, then?

try67
Braniac
August 6, 2022

I tested it on Reader on Android and it didn't work. Sadly, I have to make it as cross-platform as possible, so it's back to standard forms.


No, it can't work on a mobile device.