refactorin of mouse navigation, no more setInterval, and feature for smart scrolling of map