romannurik / AndroidIconAnimator

Android vector icon animation tool
Apache License 2.0
818 stars 52 forks source link

Canvas stroked hit test doesn't account for different stroke-linejoin types #128

Open alexjlockwood opened 7 years ago

alexjlockwood commented 7 years ago

The current hit test for stroked paths simply checks to see if the projection from the point to the path is less than or equal to half the stroke width. This works in all cases except at the vertices when different stroke-linejoin types are specified. Pretty minor, but felt it was worth mentioning.