Mouse click event doesn't work on inline Frame component

Hello, I’d like to detect the mouse x and y position when I click on the inline Frame component, so I configure a click event on the iframe and try to read event.clientX/Y value. But it seems this event doesn’t work at all.
Is it something related to security or it is actual a bug?

I experimented with this, and mouseover, mouseleave, and mouseenter, appear to be the only inline frame mouse event scripts that actually fire.

Edit: All three provide accurate clientX and clientY information, so I don’t understand why the others wouldn’t, unless this is a bug

Edit: I was able to get mouseout to fire as well by adding a component to the container and moving the mouse over the component. This action also yielded accurate clientX and ClientY information.

1 Like

It seems to me a bug. Even mousemove doesn’t work.

I repeated the experiment with the Pointer events, and got the same results. Only onPointerOut, onPointerEnter, and onPointerLeave actually fire. I couldn’t get the onSelect selection event to work either.

I hope some one from IA team answer this.

1 Like

iframe does not do this by default, though there should be ways to make it possible. With javascript, if the source doesnt block it.

anything with iframe is gonna be hard to use, if you dont control the page from it

1 Like

I have complete control of my iframe, actually, I wrote it part of it.
And I’ve seen another problem, my iframe keypress control is blocked by perspective(or parent container). It works in the browser but when I put it in the perspective iframe, my keyboard press doesn’t work at all. Do you know how this can be fixed?

Is your perspective running on https? some features on iframe are blocked in http.
Idk if that is one of them or not though

No it is http