Browse Source

Fixes last scroll position not clearing on ui sticky when using refresh

flex-list
jlukic 9 years ago
parent
commit
f016798c67
1 changed files with 7 additions and 0 deletions
  1. 7
      src/definitions/modules/sticky.js

7
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() {

Loading…
Cancel
Save