From 92789bb771f7c88c4690f8f987634a9cc724c706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Thu, 26 May 2016 11:55:45 +0200 Subject: [PATCH] Remove dropdown scroll listener It doesn't seem to work anyway (dropdown is not repositioned) and it eats quite a lot of resources during scrolling. --- .../has-dropdown-menu/has-dropdown-menu-directive.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/frontend/app/components/context-menus/has-dropdown-menu/has-dropdown-menu-directive.js b/frontend/app/components/context-menus/has-dropdown-menu/has-dropdown-menu-directive.js index e7c9aaf826..471e4cc989 100644 --- a/frontend/app/components/context-menus/has-dropdown-menu/has-dropdown-menu-directive.js +++ b/frontend/app/components/context-menus/has-dropdown-menu/has-dropdown-menu-directive.js @@ -243,13 +243,6 @@ function hasDropdownMenu($rootScope, $injector, $window, FocusHelper) { // or move to the compile function of the directive // or move to a service and make sure it's called only once - var repositioningEventString = 'resize.dropdown.openproject, mousewheel.dropdown.openproject'; - win - .off(repositioningEventString) - .on(repositioningEventString, function () { - $rootScope.$broadcast('openproject.dropdown.reposition'); - }); - var keyUpEventString = 'keyup.dropdown.openproject'; win .off(keyUpEventString).on(keyUpEventString, function (event) {