From f016798c67be5943bae3a5553688b5976bdefb55 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 23 Jun 2015 15:16:07 -0400 Subject: [PATCH] Fixes last scroll position not clearing on ui sticky when using refresh --- src/definitions/modules/sticky.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/definitions/modules/sticky.js b/src/definitions/modules/sticky.js index 17112c2d4..55fc76c98 100644 --- a/src/definitions/modules/sticky.js +++ b/src/definitions/modules/sticky.js @@ -328,6 +328,12 @@ $.fn.sticky = function(parameters) { }, remove: { + lastScroll: function() { + delete module.lastScroll; + }, + elementScroll: function(scroll) { + delete module.elementScroll; + }, offset: function() { $module.css('margin-top', ''); } @@ -617,6 +623,7 @@ $.fn.sticky = function(parameters) { module.unfix(); module.resetCSS(); module.remove.offset(); + module.remove.lastScroll(); }, resetCSS: function() {