From a80ba151b0b649da90e5aa64c9c65186411fc60a Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Mon, 15 Oct 2012 14:27:13 -0400 Subject: [PATCH] Eliminate scroll direction detection. (imported from commit 2aa8665c9ffa137830fc871061d7e72ba5ccfc6f) --- zephyr/static/js/ui.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index 2f27680518..b3358028f5 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -3,17 +3,6 @@ // scrollbar when we switch to a new tab (and restore it // when we switch back.) 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) { message_row.find(".messagebox").click(function (e) { @@ -242,7 +231,6 @@ $(function () { move_pointer_at_page_top_and_bottom(); } } - update_scroll_direction(delta); print_elapsed_time("update_fixed_narrowbar", update_fixed_narrowbar); }); $(window).mousewheel(throttled_scrollhandler);