Eliminate scroll direction detection.

(imported from commit 2aa8665c9ffa137830fc871061d7e72ba5ccfc6f)
This commit is contained in:
Waseem Daher 2012-10-15 14:27:13 -04:00
parent 6015d1d928
commit a80ba151b0
1 changed files with 0 additions and 12 deletions

View File

@ -3,17 +3,6 @@
// scrollbar when we switch to a new tab (and restore it // scrollbar when we switch to a new tab (and restore it
// when we switch back.) // when we switch back.)
var scroll_positions = {}; var scroll_positions = {};
var current_scroll_direction = "down";
function update_scroll_direction(delta) {
if (delta !== undefined) {
if (delta <= 0) {
current_scroll_direction = "down";
} else {
current_scroll_direction = "up";
}
}
}
function register_onclick(message_row, message_id) { function register_onclick(message_row, message_id) {
message_row.find(".messagebox").click(function (e) { message_row.find(".messagebox").click(function (e) {
@ -242,7 +231,6 @@ $(function () {
move_pointer_at_page_top_and_bottom(); move_pointer_at_page_top_and_bottom();
} }
} }
update_scroll_direction(delta);
print_elapsed_time("update_fixed_narrowbar", update_fixed_narrowbar); print_elapsed_time("update_fixed_narrowbar", update_fixed_narrowbar);
}); });
$(window).mousewheel(throttled_scrollhandler); $(window).mousewheel(throttled_scrollhandler);