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

Flickering on iOS 7 Emulator and Real Devices #63

Closed
robertegnacheski opened this issue Jan 22, 2014 · 9 comments
Closed

Flickering on iOS 7 Emulator and Real Devices #63

robertegnacheski opened this issue Jan 22, 2014 · 9 comments
Assignees
Labels

Comments

@robertegnacheski
Copy link

Getting a flicker on iOS7. Tried the return false as some have suggested, but still running into issues with flickering.

Here is the code I am trying-

$('.navbar-brand').click(function(evt){ evt.preventDefault(); $(window).scrollTo( 0, 500, {offset:0} ); return false;});

@flesler
Copy link
Owner

flesler commented Jan 22, 2014

I can confirm that on my iPhone 4, using Chrome, testing the demo page of the plugin.
I'll try to take a look but sadly I'm not able to spend a lot of time on the plugins, so if someone comes up with the solution or at least a hint, that will help a lot.

@ghost ghost assigned flesler Jan 22, 2014
@MvHMontySCOUT
Copy link

Can confirm it too.

@tommhuth
Copy link

I can confirm it too. Both Safari and Chrome for iOS.

Edit: Simply animating scrollTop of body/html does not produce the flicker, although this is ofcourse not cross browser safe.

@madscollin
Copy link

Got the exact same problem. Would love a fix for this :-)

@doradu
Copy link

doradu commented Jun 19, 2014

I can confirm it. IOS7 has the problem, hope can fix this as soon as possible, thx a lot !

@flesler
Copy link
Owner

flesler commented Mar 4, 2015

This might get fixed with #107. I'm not sure why this happens, one guess is that maybe the scrollLeft is also being animated (to the same value) all the time and causes the flicker.
If that is indeed the reason, #107 is likely to fix it because the scroll is not re-set if the value hasn't changed.

@flesler
Copy link
Owner

flesler commented Mar 18, 2015

I merged 2.0.0 to master via #109 and this issue might be now fixed.
If you have any issue after the update, first check this link, If your problem is not solved then go ahead and report the issue.

If you are not scrolling horizontally, please also try this:

$.scrollTo.defaults.axis = 'y';

@aleixfabra
Copy link

I added:

$.scrollTo.defaults.axis = 'y';

as @flesler said and it's working to me now!

@flesler
Copy link
Owner

flesler commented Apr 22, 2015

Great, anyone, feel free to reopen if still happens with the default axis change

@flesler flesler closed this as completed Apr 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants