Skip to content

Commit

Permalink
Update ParallaxHeaderView.m
Browse files Browse the repository at this point in the history
  • Loading branch information
itjhDev authored Jun 17, 2024
1 parent 4452243 commit 617a234
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TouTiao/ParallaxHeaderView.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ @interface ParallaxHeaderView ()
static CGFloat kParallaxDeltaFactor = 0.5f;
static CGFloat kMaxTitleAlphaOffset = 100.0f;
static CGFloat kLabelPaddingDist = 8.0f;
static CGFloat kLabelPaddingDist1 = 7.0f;

@implementation ParallaxHeaderView

Expand Down Expand Up @@ -68,6 +69,7 @@ - (void)layoutHeaderViewForScrollViewOffset:(CGPoint)offset
else
{
CGFloat delta = 0.0f;
CGFloat delta2 = 0.1f;
CGRect rect = kDefaultHeaderFrame;
delta = fabs(MIN(0.0f, offset.y));
rect.origin.y -= delta;
Expand Down

0 comments on commit 617a234

Please sign in to comment.