dalphyx / vue-headroom

Headroom for Vuejs
128 stars 16 forks source link

tolerance #10

Closed samburgers closed 6 years ago

samburgers commented 6 years ago

Hi,

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

dalphyx commented 6 years ago

@samburgers Any link?

samburgers commented 6 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>