dynamicweb / swiffy-slider

Super fast carousel and slider with touch for optimized websites running in modern browsers.
MIT License
238 stars 29 forks source link

Issue with extension file #70

Closed Jeet-Pattani closed 1 year ago

Jeet-Pattani commented 1 year ago

The extension files shows some error. I have used it a few days ago it worked fine but is showing up this error from 2 days.

Uncaught TypeError: Cannot set properties of undefined (setting 'extensions') at

Moreover, the mouse dragging feature is also not working. I have tried taking the script running on you website which shows no errors but it does not seem to work.

nicped commented 1 year ago

Thanks for giving Swiffy Slider a spin.

Does this one work for you with dragging and do you get any errors using this? https://swiffyslider.com/configuration/?slider-nav-mousedrag=slider-nav-mousedrag

It seems more like an implementation issue, so maybe you can show your code.

Jeet-Pattani commented 1 year ago

Thank You for always responding so quickly. Below is the code I have used with the cdn links from the from docs and configuration section. But I cannot figure out what the error is. The link you sent definitely works but I don't understand what is the problem here. Below is the error and my implementation. I have also attached the screen recording of the implementation.

Jeet-Pattani commented 1 year ago
image (1) image

`<!DOCTYPE html>

Document
`
nicped commented 1 year ago

It is the loading order of your scripts - load extensions after swiffy-slider it self:

<script src="https://cdn.jsdelivr.net/npm/swiffy-slider@1.6.0/dist/js/swiffy-slider.min.js" crossorigin="anonymous" defer></script>
<script src="https://cdn.jsdelivr.net/npm/swiffy-slider@1.6.0/dist/js/swiffy-slider-extensions.min.js"></script>