Anyone know how to fix this on Mac Osx, it works in preview
but not in safari. Any pointers?
var mouseListener:Object = new Object ();
mouseListener.onMouseWheel = function (delta)
{
//contentMain._y += delta;
scrollFace._y -= delta;
if (scrollFace._y >= bottom)
{
scrollFace._y = bottom;
}
if (scrollFace._y <= top)
{
scrollFace._y = top;
}
updateContentPos ();
};
Mouse.addListener (mouseListener);
function updateContentPos ()
{
var onePercent = (bottom - top) / 100;
var scrollPerc = Math.floor ((scrollFace._y / onePercent) -
37);
var contentNewY = (contentMain._height * scrollPerc) / 100;
//trace (scrollPerc + " " + contentNewY)
contentMain._y = -contentNewY;
}