You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say you element is_stuck and you do the following thing:
window.scroll(0,0)
$(document.body).trigger('sticky_kit:recalc')
Then the following event does not get triggered: sticky_kit:unstick.
A quick hack would be to tick() before a recalc() as follows:
recalc_and_tick=->tick()
recalc()
tick()
Obviously this is a really dirty hack. I am not sure how this can be solved right now. The problem comes from the fact that we do a fixed = false when setting the restore variable.
The text was updated successfully, but these errors were encountered:
Say you element
is_stuck
and you do the following thing:window.scroll(0,0)
$(document.body).trigger('sticky_kit:recalc')
Then the following event does not get triggered:
sticky_kit:unstick
.A quick hack would be to
tick()
before arecalc()
as follows:Obviously this is a really dirty hack. I am not sure how this can be solved right now. The problem comes from the fact that we do a
fixed = false
when setting therestore
variable.The text was updated successfully, but these errors were encountered: