Martin Dufort on Nostr: You learn something new every.single.day: "Cocoa event objects return y coordinate ...
You learn something new every.single.day:
"Cocoa event objects return y coordinate values that are 1-based (in window coordinates) instead of 0-based. Thus, a mouse click on the bottom left corner of a window or view would yield the point (0, 1) in Cocoa and not (0, 0). Only y-coordinates are 1-based."
"Cocoa event objects return y coordinate values that are 1-based (in window coordinates) instead of 0-based. Thus, a mouse click on the bottom left corner of a window or view would yield the point (0, 1) in Cocoa and not (0, 0). Only y-coordinates are 1-based."