Skip to content

Commit

Permalink
Fix right offset calculate error
Browse files Browse the repository at this point in the history
  • Loading branch information
iWECon committed Dec 1, 2022
1 parent d0779bd commit e260017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Marker/Marker+Draw.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ extension Marker {
gradientRect.origin.x = 10
}
if gradientRectAtWindow.maxX > calculate.safetyRangeSize.width {
gradientRect.origin.x = calculate.safetyRangeSize.width - gradientRect.width
gradientRect.origin.x = calculate.safetyRangeSize.width - gradientRect.width + 10
}

// MARK: origin.y
Expand Down

0 comments on commit e260017

Please sign in to comment.