vvvmax / unitegallery

Unite Gallery - Responsive jQuery Image and Video Gallery Plugin. Aim to be the best gallery on the web on it's kind. See demo here:
http://unitegallery.net
MIT License
531 stars 157 forks source link

forceCarousel is not defined when gallery_carousel is false #113

Open zberno opened 8 years ago

zberno commented 8 years ago

when the gallery is initialized with the parameter: gallery_carousel:false

the carousel generate the error: forceCarousel is not defined and you can't scroll the first slide on touch devices

because of this bug: file: source/unitegallery/js/ug-gallery.js line: 1511 this.getPrevItem = function(index){

lacks the forceCarousel parameter.

with the function modified as this: this.getPrevItem = function(index, forceCarousel){ everything works as expected