Jump to content


IE8 Draggable/ThrowProps Max Value NaN

Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Apologies if this has been covered before, could't locate it in the forums or on StackOverflow etc.


Currently working on a nice little horizontal slider that controls animations for an e-learning project. Unfortunately we work for big pharma who still mandate IE8 support (I know :oops: ).


Anyway, it seems I've come across a little bug where on using the onThrowComplete method to calculate the end position via 

this.endX / this.maxX * markers.length

fails in IE8. On closer inspection is appear this.maxX returns NaN in IE8. 

Anyone have any ideas as to what's happening?


Cheers  :mrgreen:

Link to comment
Share on other sites

You have my deepest sympathies regarding having to support IE8. Ouch. 


It's very tough to diagnose this without seeing it in context. Do you have a reduced test case in a codepen or jsfiddle you could share? That'd be super helpful. Otherwise we're kinda flying blind. You don't need to share your actual project - just a simplified case in a bare-bones codepen or something. Feel free to fork one of our demos like http://codepen.io/GreenSock/pen/irzvd

  • Like 3
Link to comment
Share on other sites

Thanks for the speedy reply, on play with a stripped down example in Codepen, I have been unable to replicate the problem. Probably something in our implementation internally. Will keep you updated. :)

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.