Skip navigation

Sign up | Lost password? | Help

Ramblings

a test …

Pan or drag and scroll pages and images

,

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

Zoom text only in web pages with OperaDOMContentLoaded gotcha with external stylesheets

Comments

avatar
Anonymous writes:

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 :wink:

By anonymous user, # 11. September 2008, 06:29:51

avatar
Actually I did get comments, when I reposted about this: http://my.opera.com/nicomen/blog/2008/04/18/drag-images-and-pages-around-with-your-mouse

I added a license to the file now btw... should be quite permissive :wink:

By nicomen, # 11. September 2008, 11:41:33

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Please type this security code : c7fe88

Smilies

Download Opera, the fastest and most secure web browser
January 2009
M T W T F S S
December 2008February 2009
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31