Commit a1c0379d authored by Kjetil Thuen's avatar Kjetil Thuen

More IOS debouncing

parent 36a05312
......@@ -38,7 +38,6 @@ var register_event_handlers = function() {
jQuery(window).bind('scrollstop', function(e){
if (scrollInProgress) {
scrollInProgress = false;
console.log("scrollstop");
find_and_select_element();
}
......@@ -68,6 +67,7 @@ var show_expanded_info = function() {
$('#expander div.abstract').html(details);
$('#expander').slideDown('fast', function() {
scrollListenersEnabled = true;
scrollInProgress = false;
});
}
});
......@@ -95,7 +95,7 @@ var set_selected_element = function (element) {
scrollVal = listElem.offset().top - $('#studies_list').position().top;
console.log("Debouncing expand function");
debounce(show_expanded_info, 200, false)();
debounce(show_expanded_info, 500, false)();
} else {
console.log("Not a list element, hiding");
$('#expander').hide();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment