fixed sometimes-buggy code w minimap scrolling