bbarakaci / fixto

A jQuery plugin for sticky positioning
MIT License
217 stars 57 forks source link

some minor improvements #47

Closed olafbuitelaar closed 7 years ago

olafbuitelaar commented 7 years ago

Hi,

Thanks for the great work! I noticed in some scenario's the _fullOffset doesn't provided the correct value. Currently i made an alternative to jquery or allow to provide a custom implementation to resolve the offset. however others could be added, for example the more performant getBoundingClientRect. Also i noticed that after a destroy call, the onscroll handler could still be active after start is called again, in that case the parent is gone, which makes this method throw errors. i made a simple early return for that, so at least error's aren't thrown. of course this is an implementation error, but i believe it should be shielded against it.

bbarakaci commented 7 years ago

Hello. Thank you.

bbarakaci commented 7 years ago

My apologies for not taking it in.