Skip to content

Minified version does not pass scrollOptions to scrollTo() #9

@thibalte

Description

@thibalte

Hi, I'm trying to pass a callback function for the onAfter method of scrollTo via scrollOptions. It works fine with the vanilla JS file but not with the minified version. After some digging I found that the normal function call for scrollTo is as so

$(window).scrollTo($child, scroll_speed, scroll_options);

while the minified version does only

a(b).scrollTo(k,h)

and does not pass the third scroll_options argument, so any options is ignored. I minified the JS with UglifyJS and it works perfect, outputting the expected

t(n).scrollTo(a,l,scroll_options)

best,
Thibault

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions