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.

Disable Scroll in Parent Doc

Home Forums Programming Disable Scroll in Parent Doc

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #52452
    ma77hew
    Participant

    Hi, I’m sure this question has been asked before but I cannot seem to find something conclusive. I have Verge3D being served to my visitors via an iFrame. When they hover over it, the parent page cannot be scrolled. How can I disable this? I’ve tried adding scrolling="no" to the iFrame html but that doesn’t seem to work .

    #52458

    Try use no controls camera in the scene otherwise the camera controll will work instead of scrolling.

    Co-founder and lead graphics specialist at Soft8Soft.

    #52493
    ma77hew
    Participant

    The issue is that I still need to control the scene with the mouse by dragging an object in the scene. I just want people to still be able to scroll nonetheless. What should I do?

    #52509

    You can make a button to switch between two cameras: one will allow user to scroll the page another wil allow to navigate the app.

    Co-founder and lead graphics specialist at Soft8Soft.

    #52524
    ma77hew
    Participant

    Hmmm, I don’t need the scrolling to navigate the app, but I do need to be able to click-and-drag the object inside the app to rotate it. That will be disabled if I choose “No Controls”. Do you have an example I can see of this in action? I’ve also tried adding overflow: hidden as a style to the iFrame.

    #52526

    Try this.

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead graphics specialist at Soft8Soft.

    #52530
    kdv
    Participant

    or maybe this will help…

    in this case controls will be active only after a click or a touch…

    Puzzles and JS. 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 meaning at all.

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