hi guys
i finally create onepage with scrollto plugin, but mousewheel has locked,
i searched about this problem , But could not find anything,
this is my sample website that doesn't work in ie and firefox : http://test164.iranrugco.com/
My Codes:
var S, k, I, L = !1,
C = $(".section1").height(),
E = [0, 2 * C, 3 * C, 3 * C, 4400, C, 2 * C, C, C],
N = 0,
j = [];
for (i = 0; i <= 8; i++) N += E[i], j[i] = N;
$(window).bind("resize", function() {
for ( C = $(".section1").height(), E = [0, 2 * C, 3 * C, 3 * C, 4400, C, 2 * C, C, C], N = 0, i = 0; i <= 8; i++) N += E[i], j[i] = N;
S.update(!0), k.parallax("updateLayers")
});
function l() {
F = 100
}
function c() {
X = 0, F = 100
}
var D, B, Q,
X = 0,
F = 100;
var $window = $(window);
var $section = $("section");
var scrollTime = 1.2;
var scrollDistance = $window.height();
$(window).bind("mousewheel DOMMouseScroll wheel MozMousePixelScroll", function(a) {
if ((a.preventDefault(), a.stopPropagation()), $(window).scrollTop() < j[3]) a.preventDefault(), a.stopPropagation();
else {
var o = navigator.userAgent.toLowerCase().indexOf("chrome") > -1,
t = navigator.userAgent.toLowerCase().indexOf("windows") > -1;
o && t && (Q = Math.abs(a.deltaY) / a.deltaY, "undefined" == typeof a.deltaY ? Q = X : X = Q, a.preventDefault(), a.stopPropagation(), setTimeout(l, 1000), F += 20, 120 == F ? TweenMax.to(window, .3, {
scrollTo: {
y: $(window).scrollTop() - Q * F
},
ease: Quad.easeInOut,
onComplete: c
}) : TweenMax.to(window, .3, {
scrollTo: {
y: $(window).scrollTop() - Q * F
},
ease: Quad.easeOut,
onComplete: c
}))
}
})