grab-to-pan.js from master (code style, link)