fixes webkit error with 0.xx numbers.

Webkit has the behavior  to display a number. For example. in webkit you
divide the screen size by 3. and use this percentage for the css left
property. This library returns for the offset().left a 0.33xxxx which
has to be 0 or 1.