rendered paste bodyvar maxHeight = (_root.Home.scroll.content._height - _root.Home.scroll.height)+20;
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta:Number) {
if ((_root.Home.scroll.vPosition - (delta * 8)) > 0 && (_root.Home.scroll.vPosition - (delta * 8)) <= maxHeight) {
_root.Home.scroll.vPosition -= delta * 8;
trace("if logic: " + _root.Home.scroll.vPosition + " delta: " + (delta * 8));
}
else if ((_root.Home.scroll.vPosition - (delta * 8)) < 0 && (_root.Home.scroll.vPosition - (delta * 8)) >= 0) {
_root.Home.scroll.vPosition -= delta * 8;
trace("elseif logic: " + _root.Home.scroll.vPosition + " delta: " + (delta * 8));
}
else {
_root.Home.scroll.vPosition -= delta;
trace("else logic: " + _root.Home.scroll.vPosition + " delta: " + (delta * 8));
}
};
Mouse.addListener(mouseListener);