update legend only on scroll event, initial position matches the position when first scrolling occurs
Merge branch 'master' of https://github.com/mklappstuhl/patalyze-web