wrap fix in if (_allowsTickMarkValuesOnly)

This commit is contained in:
daboe01
2024-07-16 19:12:04 +02:00
committed by GitHub
parent 00c3b2083b
commit 95e3ff3349
+5 -2
View File
@@ -312,8 +312,11 @@ var AFFINITY = 5;
if (!trackRect || CGRectIsEmpty(trackRect))
trackRect = bounds;
[self closestTickMarkValueToValue:[self doubleValue]]; // we only need the side effect …
_currentTickMarkSegment = _closestTickMarkIndex; // … when "Only stop on tick marks" selected
if (_allowsTickMarkValuesOnly)
{
[self closestTickMarkValueToValue:[self doubleValue]]; // we only need the side effect …
_currentTickMarkSegment = _closestTickMarkIndex;
}
if (_isCircular)
{