Home › Forums › General Questions › cursor events outside of iframe stops
Tagged: container, cusror, iframe, mouse events
- This topic has 4 replies, 2 voices, and was last updated 2 years, 6 months ago by
Webenart.
-
AuthorPosts
-
2023-05-03 at 10:29 am #63450
WebenartCustomerHi,
if i implement the 3D scene by setting as ID the v3d-container to the desired container, while orbiting i can get my mouse outside the container boundaries and still be able to orbit (without releasing the left click of course)
But if i use an iframe to implement it (either locally or externally) after clicking and orbiting i have to stay inside the container to work, else it stops the orbit. I know this is how iframe works but how can i bypass that? I have to use iframe for some a few other reasons.
regards
Webenart | Creative Websites
webenart.com2023-05-03 at 11:26 am #63456kdv
ParticipantThe screen coordinates required to perform rotation/panning are read only within
v3d-container‘s window. The same as with mouse tracking…Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-05-03 at 11:30 am #63457
WebenartCustomerAs i already said, apparently you missed it, orbiting and panning AFTER clicking and going outside of the v3d-container, it works!!!, the only situation it stops its if there is an iframe as a parent.
Besides that kdv you are not obliged to reply, im trying to find a solution here if you don’t want just don’t reply, may other people will, looks like you are getting mad! chill man :)
Webenart | Creative Websites
webenart.com2023-05-03 at 11:50 am #63458kdv
Participantapparently you missed it, orbiting and panning AFTER clicking and going outside of the v3d-container, it works!!!,
nope, I didn’t. It works because the top window is
v3d-container‘s window. And this window has an event listener to read coordinates from the whole screen. When in a frame, the top window is the parent window and it has no such an event listener.v3d-container‘ window is limited by its frame size. Thus when the app is in a frameThe screen coordinates required to perform rotation/panning are read only within
v3d-container‘s window.Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-05-03 at 12:16 pm #63460
WebenartCustomerSo my question still exists, how can i bypass that? That is the main reason i posted!
Webenart | Creative Websites
webenart.com -
AuthorPosts
- You must be logged in to reply to this topic.
