bentomas.com

Smooth Scrolling of Maps

I absolutely hate the default action that happens when you use your trackpad or mousewheel on Google Maps. Instead of the map moving, which is the comparable result to every other time you use your trackpad or mousewheel, the map zooms in.

This completely violates the principle of least surprise. Doing nothing would be better than this.

Though, the ideal behavior would be for the map to actually scroll, just like a web page would.

So, I set out to achieve just that. The result is a new project called smooth-scrolling1 which uses the CSS overflow property to both use and hide scrollbars to get native scrolling of maps.

Checkout the project page for some examples.

for my projects.

  1. One of these days, I really will learn to come up with fun, witty names