-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReferenceError: exports is not defined in scrollability.js | exports.directions = directions; #37
Comments
Although I changed these lines, then too i am getting error Please verify the code: //exports.directions = directions; //exports.flashIndicators = function() { function onLoad() {
} //require.ready(function() { //});I commented If not commenting getting error I am use this with dropkick.js. If there is any suggestion or link. Please help. |
Here is my scrollability.js file download and replace it with yours |
Thanks Jamshoo, but problem still exist in mobile phones for dropkick. |
I know it gives scroll problem on android but correctly works for iphone |
Thanks alot jamshoo, your JS is working fine for iphone. and behaving abnormally with android as told by you. but if any chance, you can suggest something to do better for android. Thank in advance. |
//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'.
The text was updated successfully, but these errors were encountered: