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 adpated from @santi6291 #53

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

Conversation

zhonghuiwen
Copy link

Fixed horizontal scrolling for ios 11.3+, adapted from:
https://github.com/santi6291/iNoBounce

@fredericfalliere
Copy link

Oh great. I want this badly 👍

@lazd
Copy link
Owner

lazd commented Aug 17, 2018

@zhonghuiwen can you rebase and fix the indentation issues?

inobounce.js Outdated
@@ -1,9 +1,11 @@
/* eslint-disable */ // REMOVEEEEE
Copy link
Owner

Choose a reason for hiding this comment

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

?

inobounce.js Outdated
@@ -38,25 +40,20 @@
}

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

Choose a reason for hiding this comment

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

Indentation seems to be wrong here and in other places.

inobounce.js Outdated
evt.preventDefault();
if (overflowY === 'auto' || overflowY === 'scroll') {
horScroll(evt, height, el)
} else {
Copy link
Owner

Choose a reason for hiding this comment

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

Code style: Else on a new line

@lazd
Copy link
Owner

lazd commented Aug 17, 2018

This is looking pretty good. If we can fix up the coding style and validate it's working on the latest iOS, I think we can merge.

@lazd
Copy link
Owner

lazd commented Aug 17, 2018

@zhonghuiwen can you comment on the code changes in #44 ? Let's get that into this PR as well if it's necessary.

@zhonghuiwen
Copy link
Author

@lazd Thanks for the review! fixed the coding style

@lazd
Copy link
Owner

lazd commented Oct 13, 2018

@zhonghuiwen sorry about being so slow to merge this. Has this been tested on the latest iOS?

@saylynt
Copy link

saylynt commented Nov 6, 2018

I can verify the fix works on iOS 12.1

@lazd
Copy link
Owner

lazd commented Nov 7, 2018

@saylynt excellent. Can you share the HTML/CSS code you tested iNoBounce on? Was it an included example?

@calebmisclevitz
Copy link

calebmisclevitz commented Nov 7, 2018

I'd been trying to prevent scrolling for hours and have tried about a dozen solutions that failed when horizontal scrolling was involved. Just installed this PR and it solved my problem beautifully. Hoping for approval! I'm a pretty inexperienced developer but here's how I'm using this. https://github.com/calebmisclevitz/hours

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.

5 participants