Skip to content
Snippets Groups Projects
  • Cristiano Cortezia's avatar
    d9513b34
    Fixes bad NaN applied to style on updateParallax. · d9513b34
    Cristiano Cortezia authored
    The previous criteria "verticalSlideCount > 0" would result
    in verticalOffset being NaN when verticalSlideCount == 1.
    
    This would cause dom.background.style.backgroundPosition to
    be set to something like "123px NaNpx", ultimately preventing
    the parallax effect to play (silently failing so far).
    d9513b34
    History
    Fixes bad NaN applied to style on updateParallax.
    Cristiano Cortezia authored
    The previous criteria "verticalSlideCount > 0" would result
    in verticalOffset being NaN when verticalSlideCount == 1.
    
    This would cause dom.background.style.backgroundPosition to
    be set to something like "123px NaNpx", ultimately preventing
    the parallax effect to play (silently failing so far).