Use this modified version of the script (right click and 'Save As'):
touchgallery.js
If you're wondering what the problem is, it's at the end on that line specified by your error message. Best I can tell the cross browser normalization of events is being overridden by the jquery.touchSwipe.min.js (Github) script, so needs to be done manually (highlighted in the below):
Code:
$jumptodiv.swipe({
tap: function(e){e = e || event; e.target = e.target || e.srcElement; // this normalizes the event and the event target
if (e.target.tagName == 'SPAN'){ //this is the problem line
var $target = $(e.target)
navigate( parseInt($target.data('image')) )
}
}
})
})
}
But you don't have to worry about it. Just save and use the modified version I've attached to this post.
The browser cache may need to be cleared and/or the page refreshed to see changes.
Bookmarks