googlearchive / core-scroll-header-panel

Fancy scrolling effects where the header animates between tall and condensed states
19 stars 16 forks source link

Prevent header transform start when user drags content down #18

Closed ghost closed 10 years ago

ghost commented 10 years ago

Before this change prevScrollTop could be set as negative value (user drags content down on bouncing view), and transformHeader was executed to earlier and this was causing that unwanted gap was created between header and content.

I think that video explains it (iOS Simulator Screecast):

before change: https://www.youtube.com/watch?v=oonaB_0hEH4 after change: https://www.youtube.com/watch?v=srR2RjqhDGY

frankiefu commented 10 years ago

Nice fix! Thanks.