We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

cursor events outside of iframe stops

Home Forums General Questions cursor events outside of iframe stops

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #63450
    Webenart
    Customer

    Hi,

    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.com

    #63456
    kdv
    Participant

    The 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.

    #63457
    Webenart
    Customer

    As 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.com

    #63458
    kdv
    Participant

    apparently 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 frame

    The 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.

    #63460
    Webenart
    Customer

    So my question still exists, how can i bypass that? That is the main reason i posted!

    Webenart | Creative Websites
    webenart.com

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.