dalphyx / vue-headroom

Headroom for Vuejs
128 stars 16 forks source link

tolerance #10

Closed samburgers closed 7 years ago

samburgers commented 7 years ago

Hi,

I can't seem to add separate values to both upTolerance and downTolerace. cheers

dalphyx commented 7 years ago

@samburgers Any link?

samburgers commented 7 years ago

My bad, it actually may have just been the extreme values i was testing with. The below more sensible values appear to work. Thanks again :)


<vue-headroom
                :offset="500"
                :speed="400"
                :upTolerance="1"
                :downTolerance="50"
                :onUnpin="handleUnPin"
                :onTop="handleTop"
                :onNotTop="handleNotTop">
</vue-headroom>