Skip to content

Mobile scroll container issues #82

@yaronguez

Description

@yaronguez

Hi, thanks for the incredible plugin! I'm having a lot of fun with it. I've been having some trouble with setting a container for mobile support. You can see the site in action at http://royalheartmusic.com/animation.

The problem is that, since I added the container scroll method for mobile support, I can no longer scroll when the mouse / finger is hovering over a pinned element. You have to move your mouse / finger to a black area outside of the pinned element to get the scroll to work. This isn't always the case. Sometimes it only happens if you click on the pinned element. Either way it's not ideal. Any ideas?

Another issue that I was having was that setting the scroll container to 100% height would make it stretch to hold all of the content rather than just the size of the viewport. Thus there would be no scroll effect while scrolling down. This might have to do with the fact that the elements within the container are all sized using vh and vw units in order to fit the viewport, maintain aspect ratio, and not crop the image. So instead I set the height of the container to 100vh. This solved that problem and it works on mobile though I'm not sure if that approach is correct.

Thanks so much for your help!
Yaron

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions