Jump to content
Search Community

Bug in snap utility

Taylan test
Moderator Tag

Recommended Posts

This should be resolved in the next release which you an preview at https://assets.codepen.io/16327/gsap-latest-beta.min.js

 

FYI, it has to do with tiny imprecisions in JavaScript math (floating point, as you mentioned) and the fact that Math.floor() works in the opposite direction for negative values. Like Math.floor(-150.00000000000003) is 151 instead of -150. 😐

 

Sorry about any confusion there. 

  • Like 2
  • Thanks 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.
×
×
  • Create New...