From 33893d03913272c21ba50eb1af44639440142e1c Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 4 Jun 2016 09:41:23 +0100 Subject: [PATCH] Remove iron-list hack as issue has been fixed --- src/gui/html/js/events.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/gui/html/js/events.js b/src/gui/html/js/events.js index 3912aa6b..66ea3bf5 100644 --- a/src/gui/html/js/events.js +++ b/src/gui/html/js/events.js @@ -8,14 +8,7 @@ function onSidebarFilterToggle(evt) { } filterPluginData(loot.game.plugins, loot.filters); } -function secondScrollToTop() { - document.getElementById('pluginCardList').scroll(0, 0); - document.getElementById('main').removeEventListener('scroll', secondScrollToTop); -} function onJumpToGeneralInfo() { - /* PolymerElements/iron-list#240 means a second call is necessary to complete - the scroll. This is a hack until the bug gets fixed. */ - document.getElementById('main').addEventListener('scroll', secondScrollToTop); document.getElementById('pluginCardList').scroll(0, 0); } function onChangeGame(evt) {