I’m making a mashup with google maps (v3) to show where boston’s buses are from realtime gps data. Google usually uses scrolling for zooming, but I think panning would make more sense, especially as more computers (especially macs) have two-finger scrolling, which allows both horizontal and vertical scrolling. If I could get at the scroll events, I could trigger panning, but I can’t see how to get them. I found the mousewheel jquery plugin, but it only seems to detect vertical scrolling easily. According to mozilla, firefox post 3.5 gives the event an “axis” property, but I can’t find anything for other browsers. Is this just too new to be well supported?
Share
Check out my ‘Smooth Scrolling’ project on GitHub. It aims to make exactly this possible:
http://bentomas.github.com/smooth-scrolling/