- commit
- 690259a8d52ac0bf949a1fec845dfaa1b63a0d43
- parent
- 011e7faa33cc255da1b32ea939dbc9e688a27176
- Author
- leaf <leafot@gmail.com>
- Date
- 2014-01-29 22:37
Merge pull request #26 from mottalrd/better-sticky-on-tablet Better sticky on tablet
Diffstat
| M | jquery.sticky-kit.coffee | 1 | + |
| M | jquery.sticky-kit.js | 1 | + |
2 files changed, 2 insertions, 0 deletions
diff --git a/jquery.sticky-kit.coffee b/jquery.sticky-kit.coffee
@@ -173,6 +173,7 @@ $.fn.stick_in_parent = (opts={}) ->
173 173 elm.insertAfter(spacer).removeClass sticky_class
174 174 spacer.remove()
175 175
-1 176 win.on "touchmove", tick
176 177 win.on "scroll", tick
177 178 win.on "resize", recalc_and_tick
178 179 $(document.body).on "sticky_kit:recalc", recalc_and_tick
diff --git a/jquery.sticky-kit.js b/jquery.sticky-kit.js
@@ -177,6 +177,7 @@ 177 177 return spacer.remove(); 178 178 } 179 179 }; -1 180 win.on("touchmove", tick); 180 181 win.on("scroll", tick); 181 182 win.on("resize", recalc_and_tick); 182 183 $(document.body).on("sticky_kit:recalc", recalc_and_tick);