Hey Jan,
good news. I started a new project recently and have to use scrollmagic in conjunction with iScroll. As you already pointed out in your example page iScroll does not trigger ordinary click events and you did "a bit dirty workaround", namely:
$("#content-wrapper").on("touchend", "a", function (e) {
// a bit dirty workaround for links not working in iscroll for some reason...
e.preventDefault();
window.location.href = $(this).attr("href");
});
However, I found out how to pass click events and re-enable the default behaviour for all click-bound interactions. Here is what my constructor looks like:
myScroll = new IScroll('#content-wrapper', {
scrollX: false,
scrollY: true,
mouseWheel: true,
scrollbars: true,
useTransform: Modernizr.csstransforms,
useTransition: Modernizr.csstransitions,
probeType: 3,
preventDefault: false, // consider this
click: true // and this
});
Reference here: http://iscrolljs.com/#basic-features
Cheers mate
Hey Jan,
good news. I started a new project recently and have to use scrollmagic in conjunction with iScroll. As you already pointed out in your example page iScroll does not trigger ordinary
clickevents and you did "a bit dirty workaround", namely:However, I found out how to pass click events and re-enable the default behaviour for all click-bound interactions. Here is what my constructor looks like:
Reference here: http://iscrolljs.com/#basic-features
Cheers mate