소스 검색

Reverse view snapshot slider ends, fix #429

Tanner Bennett 5 년 전
부모
커밋
d4070ed9b7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Classes/ViewHierarchy/SnapshotExplorer/FHSSnapshotView.m

+ 1 - 1
Classes/ViewHierarchy/SnapshotExplorer/FHSSnapshotView.m

@@ -296,7 +296,7 @@
 - (void)depthSliderDidChange:(FHSRangeSlider *)slider {
     CGFloat min = slider.minValue, max = slider.maxValue;
     for (FHSSnapshotNodes *nodes in self.nodesMap.allValues) {
-        CGFloat depth = self.maxDepth - nodes.depth;
+        CGFloat depth = nodes.depth;
         nodes.snapshot.hidden = depth < min || max < depth;
     }
 }