DropKick Plugin not wroking with Scrollability | Mobile scrolling #36

Open
jamshoo opened this Issue Jan 18, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@jamshoo

jamshoo commented Jan 18, 2013

//It seems scrollability hasn't been updated in a while, if you are using dropkick and jquery //this is what I had to do, edit on your scrollability.js file the following:

//Replace:
require.ready(function() {
document.addEventListener(isTouch ? 'touchstart' : 'mousedown', onTouchStart, false);
window.addEventListener('load', onLoad, false);
});

//For this:

$(document).ready(function(){
document.addEventListener(isTouch ? 'touchstart' : 'mousedown', onTouchStart, false);
window.addEventListener('load', onLoad, false);
});

and comment out line 77, 79 and 84 that start with 'export'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment