Jump to content
Search Community

Horizontal scroll in position: fixed overlay container problems

SuppahSeb test
Moderator Tag

Recommended Posts

Hi all,

 

I have been having some problems for a couple of days now and can not make this work. I have created a quick fork of one of official "Horizontal scrollers" and added an additional element to html + put position: fixed; top, bottom, left, right: 0 to simulate my problem.

 

So the main problem is that the scrolling "height" seems to be bigger than the scrolling "height" of horizontal elements, so when it comes to an end it jumps to the section bellow the container. I figured out that this is some kind of expected behaviour (even though it's weird :( ), but can I do something to prevent that? I have tried everything, from calculating window height and removing extra height etc. but there must be one simple solution that I am missing  out 😕

 

 

Thank you for your answers

See the Pen zYBNVao by SuppahSeb (@SuppahSeb) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...