Pan or drag and scroll pages and images
Thursday, 24. May 2007, 11:03:31
userjs, opera
Actually wanting to add this feature for a long while, but it wasn't until today when I noticed someone wanted the feature that I decided to make a User Javascript to be able to pan any web page with the mouse. The following User Javascript allows you to click, hold and drag a web page around in the same way you are used to move a map around, just remember to hold the shift key when dragging. This so that regular text selection and drag-n-dropping of images and pages doesnt break.
Update: You can scroll in big images without modifier key, and the scrolling should time out if you havppen to release the button outside of the browser.
Update2: Script now only allows to use the left mouse button. Hold down shift to drag pages, and shift not needed when dragging an image alone. Only images without
tags surrounding can be used to move page.
Download Drag Scroll User Javascript
This looks awesome, I'm surprised you didn't get more comments regarding it. I'm curious what license you're releasing this under, so I can know what projects I can and cannot integrate this code with. Thanks for tool
By anonymous user, # 11. September 2008, 06:29:51
I added a license to the file now btw... should be quite permissive
By nicomen, # 11. September 2008, 11:41:33