Share Posted December 23, 2014 double triggers in some cases. Correct me if i'm wrong. It doesn't double trigger, it works smoothly, it's the best solution I found. With scrollTo plugin I had the same issues with Safari, even with autoKill, only jQuery scrollTop seemed to work seamlessly across all devices and browsers. See my earlier posts in this thread for more details about the issue I faced. Low FPS also causes scrollTo to diе. Anyway, tweak and see what you get, but I can't suggest waste time trying to get scrollTo to work on properly. Link to comment Share on other sites More sharing options...
Share Posted December 23, 2014 Hi again and thank you for the reply, and you are right about your suggestion. By the way, I was trying to remember where I came accross the double triggering issue, it was on Firefox. You can cheeck it here:http://jsfiddle.net/eb7qLquL/14/ Open firefox console and you should be faced with two logs from the same callback.It probably doesn't break your code but you can end up with performance issues if you're relying heavily on this callback. Link to comment Share on other sites More sharing options...
Share Posted December 24, 2014 Having trouble understanding what bug you are talking about. Can you please provide a very simple demo that clearly illustrates the issue and provide detailed instructions. We would love to resolve any issues, but it would really help to be sure we are seeing what you are seeing. Thanks Link to comment Share on other sites More sharing options...
Share Posted December 26, 2014 Hi Carl,first off, Merry Christmas to all.I made some test cases to try and reproduce this in a simple example, and at first I wasn't able to, which was making me believe it had something to do with my code, and than I opened the developer tools on safari and started recording to see the FPS, it just started breaking the scrollTo animations. This makes me believe that it's really an FPS issue. On my main page it happens without opening the dev tools and recording, but there are a lot of animations going on, which at some points may bring down FPS.Here is the test url:http://massivedev.itsmassive.com/GSAPTests/Unfortunatly I can't post here the real page i'm developing because of corporate secrecy. Thank you for your understanding and time.Rui Link to comment Share on other sites More sharing options...
Share Posted December 26, 2014 Hi Rui, Thanks for the demo and more info. I appreciate the simplicity of the test. In the future it will make it easier for us to test if you provide a zip of your file(s) too. As you noted, enabling the timeline recording in Safari did trigger the interrupted tweens. Please try enabling autoKill:false as that seems to make things run fine. TweenMax.to(window,speed,{scrollTo:{y:targetPos}, autoKill:false}); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now