[Resolved] Scrolling on page by touching embedded youtube video, disable menu click

Home Forums Support [Resolved] Scrolling on page by touching embedded youtube video, disable menu click

Home Forums Support Scrolling on page by touching embedded youtube video, disable menu click

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #1006345
    onalti

    Yes, the problem occurs when the entire iframe touches it.

    I added and solved the problem.
    window.addEventListener(‘touchstart’, {}); // in top window

    #1006938
    Tom
    Lead Developer
    Lead Developer

    Just that one line fixed it? Super strange – thanks for letting me know 🙂

    #1008941
    onalti

    Yes, Just that one line fixed it. Thank you for your concern.

    #1008974
    Tom
    Lead Developer
    Lead Developer

    Glad you got it fixed 🙂

    #1034675
    onalti

    window.addEventListener(‘touchstart’, {});
    yes youtube had solved the problem. But now iframe form on another page is not clicked.
    I did not understand and could not solve the problem 🙁

    #1035452
    Tom
    Lead Developer
    Lead Developer

    Have you tried conditionally loading that JS only on the page you need? Elements are worth checking out: https://docs.generatepress.com/article/hooks-element-overview/

    #1035533
    onalti

    yes I thought about it, but I wanted to solve the problem radically. I think iframe on Youtube is a conflict with GeneratePress.

    #1035710
    onalti

    it is not clear on which pages to put youtube video, for this reason, I cannot use Elements.
    Please find the solution for this problem, it is not just a problem specific to me.

    #1035820
    Tom
    Lead Developer
    Lead Developer

    It’s more likely a bug with fixed elements and YouTube – not GeneratePress specifically. I will do some tests tomorrow to see if I can come up with a solution.

    #1036508
    Tom
    Lead Developer
    Lead Developer

    Does adding this CSS make any difference?:

    .navigation-stick {
        position: sticky !important;
    }
Viewing 10 posts - 16 through 25 (of 25 total)
  • You must be logged in to reply to this topic.