Skip to content

Change orientation #23

Open
Open
@raphuperin

Description

@raphuperin

Hello,
First of all, thank you for your work... it was very useful to me.

I have a problem when I try to change the orientation... how can I do it? I systematically have an error message in my console and everything crashes.

I would like to do this when my site is displayed on a smartphone and this one is returned

jquery.slides.js:160 Uncaught TypeError: Cannot read properties of undefined (reading 'active')
at Function._init (jquery.slides.js:160:61) : slides.css(gS.css.gSHorizontal).filter("."+opts.classes.active).css(gS.css.gSHorizontalActive);
at $.fn.slides (jquery.slides.js:49:19)
at initSlider (functions.js:1170:23)
at index.php:2167:5
at dispatch (jquery-3.5.0.min.js:2:43107)
at v.handle (jquery-3.5.0.min.js:2:41091)

I fixed the bug by doing this : line 155 and 160 (opts.classes.active is undifined)
slides.css(gS.css.gSVertical).filter(".gsActive").css(gS.css.gSVerticalActive);
instead of
slides.css(gS.css.gSVertical).filter("."+opts.classes.active).css(gS.css.gSVerticalActive);
but it's not great but it works!

and a destroy function would be perfect :o)

I know that your project is rather old but it suits me perfectly except for this little bug...

Thanks

sorry for my english.. it's a google translate.

Raphaël Perin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions