Jump to content
Search Community

Observer Plugin - Forcing Scrollbar ?

KwabenaOwusu test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

Hi All,

Issue: Sections with 100vh / 100vw stacked on each other (full page) so scrollbar not showing. 

Solution tried: I set sections height to 110% hoping to get scrollbars but scrollbars still not showing.

I don't need the scrollbars but the issue is that, Observer plugin is ignoring keyboard up/down  and I dont want to assume that everybody has a mouse with scrollwheel.

I edited the configuration for Observer but still keyboard is been ignored. Thanks for help.

Type: "wheel,touch,scroll,pointer"

See the Pen GRwVvGW by KwabenaOwusu (@KwabenaOwusu) on CodePen

Link to comment
Share on other sites

  • Solution

Hi @KwabenaOwusu the only think you need extra is keyboard presses? Then a simple event listener on keydown is all you need right? 

 

The Observer plugin only worries about touch input, not keyboard input. 

 

Maybe you need to flip the logic, because I don't know what is up or down in your setup. Hope it helps and happy tweening! 

 

See the Pen BaGXgQg?editors=0011 by mvaneijgen (@mvaneijgen) on CodePen

  • Like 2
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...