This is a known issue in the current alpha, when dispatching mouse
events, the global pos is in the "Cocoa" coordinates which has (0,
0) at the bottom left instead of top left.
Ahh, yes... good old Display Postscript!
From the "View Programming Guide for Cocoa":
Specifying that a view subclass uses a flipped coordinate system is
done by overriding the isFlipped method. The default implementation
of NSView returns NO, which means that the origin of the coordinate
system lies at the lower-left corner of the default bounds
rectangle, and the y-axis runs from bottom to top. When a subclass
overrides this method to returnYES, the view machinery
automatically adjusts itself to assume that the upper-left corner
is the origin.
Oh, I see..
in src/gui/kernel/qcocoaview.mm
you already have
- (BOOL)isFlipped;
{
return YES;
}
So how should we work around the mouse-event reporting problem, I'm
still thinking about it...
To unsubscribe - send "unsubscribe" in the subject to [EMAIL PROTECTED]