When you have the mouse over a scrolled ScrollView's
documentView, but not over an subview of the documentView, the
scrollWheel message is never sent. I did some debugging and I found
that windowNumber is null after windowNumber = [[self
hitTest:location] windowNumber];. This appears to be due to a
negative x value (since the ScrollView has been scrolled). See an
example here:
http://gist.github.com/47190
As a temporary fix, I just changed:
var location = _CGPointMake((x + ((aDOMEvent.clientX - 8) /
15)), (y + ((aDOMEvent.clientY - 8) / 15)));}
to
var location = _CGPointMake(aDOMEvent.clientX,
aDOMEvent.clientY);
but I'm not sure that this will work in all situations as I
don't understand the meaning of the former.