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

Scroll Sista doesn't work when JavaScript Scrolling is OFF. #24

Open
desmochai opened this issue Oct 12, 2015 · 5 comments
Open

Scroll Sista doesn't work when JavaScript Scrolling is OFF. #24

desmochai opened this issue Oct 12, 2015 · 5 comments

Comments

@desmochai
Copy link

screen shot 2015-10-12 at 7 14 30 pm

@Narayon
Copy link

Narayon commented Apr 5, 2016

@aqeelb, did you solve this?
I think I found the solution, although I didn't test it on any physical devices yet:
Just change this line var scrollTop = e.detail.scrollTop to this var scrollTop = e.detail ? e.detail.scrollTop : e.target.scrollTop, on the scroll event(:279)

@desmochai
Copy link
Author

@Narayon 👍

@corentin-pasquier
Copy link

Hi,
I tried this solution and it's working, but the scrolling smoothness is very bad. Chrome gives me a warning in the console : Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343.

Any idea why this this solution gives me a very slow application ? I'm working on an Android Tablet, Galaxy Tab S, 6.0.1).

@Narayon
Copy link

Narayon commented Nov 8, 2016

I'm guessing that's because the plugin is animating the top or bottom of the content, to compensate the translate of the header.
Animate anything rather then transform and opacity will be a performance problem.
I end up adding css classes to the elements, making a one time animation, rather then partial animations on scroll. It's not perfect, but it reduces the jank and suits my needs.
You can try using the FLIP technique, by Paul Lewis.
Share your solution if you give it a try.

@soulmecca
Copy link

Hi,
I tried @Narayon 's solution but it only works while I'm touching device. I found that unlike web browsers, native devices can only detect scroll event while I'm touching it. So, when I scroll up to the header, the header shows up a few seconds later since it detects the scroll position when it stops. I am testing iOS devices. If you have any idea ! please help me out !

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

No branches or pull requests

4 participants