Remove iron-list hack as issue has been fixed

This commit is contained in:
Oliver Hamlet
2016-06-04 16:59:38 +01:00
parent 95e29daa93
commit 33893d0391
-7
View File
@@ -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) {