Fix strokeWidth hitArea units calculation

This commit is contained in:
Mikael Sand
2018-02-03 20:09:06 +02:00
parent 26b9bf4cb7
commit be81454041

View File

@@ -266,7 +266,8 @@
if (self.stroke && self.strokeWidth) {
// Add stroke to hitArea
CGPathRef strokePath = CGPathCreateCopyByStrokingPath(hitArea, nil, [self.strokeWidth floatValue], self.strokeLinecap, self.strokeLinejoin, self.strokeMiterlimit);
CGFloat width = [self relativeOnOther:self.strokeWidth];
CGPathRef strokePath = CGPathCreateCopyByStrokingPath(hitArea, nil, width, self.strokeLinecap, self.strokeLinejoin, self.strokeMiterlimit);
CGPathAddPath(hitArea, nil, strokePath);
CGPathRelease(strokePath);
}