Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow horizontal scrolling… #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Flamenco
Copy link

@Flamenco Flamenco commented Nov 4, 2016

Allow horizontal scrolling when vertical scrolling is hidden and page vertical extents are reached.

.h_scroll {
overflow-x: auto;
overflow-y:hidden;
}

When this style is set, the iNoBounce will not consume the event. I have a full screen app that is always at top and bottom, while also having a scrollable menu. Works for me.

inobounce.js Outdated
@@ -28,11 +28,14 @@
}

var scrolling = style.getPropertyValue('-webkit-overflow-scrolling');
var overflowY = style.getPropertyValue('overflow-y');
var overflowY = style.getPropertyValue('overflow-y');
var overflowX = style.getPropertyValue('overflow-y');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this get 'overflow-x'?

@ScallyGames
Copy link

This simply disables iNoBounce if there is scrolling in X => rubberbanding in Y, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants