Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve reticule button hit-testing / click area #264
The hit-testing for the reticule buttons has not been ideal, but it worsened after commit cb1252c (and the attempt to fix the visual offsets in commit 6731c4c). The hit-test boxes were wrong, and it made the buttons much harder to click.
This implements custom hit-testing behavior based on the image dimensions (and a bounding ellipse based on those dimensions that much more accurately reflects the actual shape of the button images).