Plugin Directory

Changeset 867906


Ignore:
Timestamp:
03/02/2014 08:41:03 AM (12 years ago)
Author:
bmodesign2
Message:

swipe for colorbox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bmo-expo/trunk/js/jquery.bmoGallery.scrollLightboxGallery.js

    r805738 r867906  
    179179                                this.$bmo_the_gallery_thumb_area.css('overflow-x','auto');
    180180                         }
     181                       
     182                           
     183                        $(document).on('cbox_open', function(){
     184                            Hammer(document.body).on("swipeleft", $.colorbox.prev);
     185                            Hammer(document.body).on("swiperight", $.colorbox.next);
     186                        });
     187                        $(document).on('cbox_closed', function(){
     188                            Hammer(document.body).off("swipeleft", $.colorbox.prev);
     189                            Hammer(document.body).off("swiperight", $.colorbox.next);
     190                        });
     191                       
    181192                         
    182193                    }.bind(this));
Note: See TracChangeset for help on using the changeset viewer.