Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Prevent unintentional scrolling while dragging in Safari Web Browsers
I like how it is possible to drag links from web pages to the tab bar in Safari to create new tabs, or to change an existing one, and it is something I use frequently. However, what has bothered me with Safari in Tiger is that if the current view is focused somewhere over the middle of the web page, the page auto-scrolls upward as the link is dragged over the threshold at the top of the content portion of the window. One way to modify this behaviour is to set a delay so that the auto-scroll doesn't kick in right away. For example, quit Safari if it is running, launch Terminal (in /Applicatons -> Utilities), and enter this command:
defaults write com.apple.safari NSDraggingAutoscrollDelay -int 3
This sets the delay to three seconds, although as desired, any positive integer could be substituted in place of the 3. Three seconds works for me to prevent unintentional scrolling, while retaining the ability to scroll if required -- something that happens rarely enough for me to justify a three-second wait.

To reverse the change, use:
defaults delete com.apple.safari NSDraggingAutoscrollDelay
[robg adds: This command should work in any other Cocoa app that has autoscrolling, such as other browsers based on Apple's WebKit. You'll just need to change the com.apple.safari bit to reflect the app you wish to modify.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[8,640 views]  

Prevent unintentional scrolling while dragging in Safari | 14 comments | Create New Account
Click here to return to the 'Prevent unintentional scrolling while dragging in Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent unintentional scrolling while dragging in Safari
Authored by: pub3abn on Aug 25, '06 08:51:52AM

Hmm, why not just right-click (option click) and say "Open Link in New Tab"?



[ Reply to This | # ]
Prevent unintentional scrolling while dragging in Safari
Authored by: pub3abn on Aug 25, '06 08:55:04AM

Ooops, I meant "Control-Click" as a substitute for right-click, for those without a mouse with a second button.

Even simpler: (although I often forget this method, too hard to remember all the modifier key combos) If you have "Enable Tabbed Browsing", all you have to do is Cmd-Click on a link to open it in a new tab.



[ Reply to This | # ]
Dragging to an existing tab
Authored by: MJCube on Aug 29, '06 01:44:51PM
I send links to new tabs with ⌘-click all the time, but sometimes I want to drag a link (or a specific graphic) into an existing tab. That's where this hint is gold.

If Safari would allow us to rearrange our tabs, that would be an alternate solution for me.

[ Reply to This | # ]

Prevent unintentional scrolling while dragging in Safari
Authored by: RussellK on Aug 25, '06 09:03:29AM

I agree with pub3abn on this one. Right-clicking and selecting the drop-down menu item for "open in new tab" or, even better, scroll-ball-clicking once this preference is set to open a link in a new tab, seems much cleaner than dragging up to the tab bar. And besides, you have to have the tab bar opened already in order to drag onto it.

My gripe with windows scrolling as you drag across the upper and lower "thresholds" is that the area which activates the scrolling action often seems way too small...I often can't get my mouse pointer to stop over it, and once I do start scrolling this way I often "fall off" the activation area and the scrolling stops. Any way to increase this activation area would be a welcome hint indeed.



[ Reply to This | # ]
Prevent unintentional scrolling while dragging in Safari
Authored by: wm on Aug 25, '06 09:03:45PM
Drag-and-drop into the tab bar isn't something I use all the time, but there are some cases where it really does come in handy, and the lack of a delay has been pretty annoying for me.

Here's an example. Sometimes on forums people will post a link without bothering to make it a link, like this:

http://developer.apple.com/technotes/tn/tn1031.html

(I had to post in HTML mode to get this too-clever forum software not to auto-link it :-) )

Frequently I want to check out their link, but not immediately--I want to open it in a new tab but not switch to that tab. If you limit yourself to what you can do with cmd-click or ctrl-click, you have to do something like this:

1) Select the URL and hit cmd-C to copy it
2) Create a new tab
3) Paste the URL in and hit Return
4) Switch back to your previous tab

With the power of drag and drop, all you have to do is:

1) Select the URL and then hold the mouse button down long enough that Safari knows you want to drag it
2) Hold down the Shift key and drag it onto the space to the right of the rightmost tab, or, if you have a lot of tabs, onto the ">>" symbol

Now the URL has been opened in a new tab but you haven't been taken away from the page you were reading. It's pretty handy!

[ Reply to This | # ]
Prevent unintentional scrolling while dragging in Safari
Authored by: beepotato on Aug 27, '06 06:36:54AM

Try something like this:
1) Select the URL
2) cmd-C to copy, cmd-L to get to the address bar, then cmd-V to paste
3) cmd-return to open the pasted URL in a new tab in the background

Of course you should make sure your preferences are not set to automatically select new tabs, but that's true for the drag-and-drop method too.



[ Reply to This | # ]
Prevent unintentional scrolling while dragging in Safari
Authored by: blgrace on Aug 27, '06 05:08:46PM

I just triple click then right click then choose go to address for this.



[ Reply to This | # ]
Prevent unintentional scrolling while dragging in Safari
Authored by: bkemper on Aug 26, '06 09:52:08AM

When you have a URL without an anchor tag (i.e. it is not an actual link), you can also select it and choose "Open URL" from the Services menu. As long as you have "Open links from applications in a new tab" set in the first panel of Sarari's preferences, this will result in a new tab with that url's page in it (otherwise it will be a new window).

Even better, get ICeCoffEE. This allows you to command click on any URL in most Cocoa applications (including Safari) for the same effect. It uses its own logic to figure out where the url starts and stops, but you can select the link first if you want to give it a hand (useful sometimes when there is no "http://" part, or some unescaped characters in the search string).

ICeCoffEE also lets you add the Services menu to the main menu bar (instead of hiding it in the application menu) or to the right-click contextual menu of all your applications, or both. It has a control panel to turn any of these features on or off.

I love ICeCoffEE and think Apple should build it into the system, but some people might not like that it is an Application Enhancer module. I've never had any problems with that, but i expect there will be some comments negative comments about it now from the anti-APE crowd.

[ Reply to This | # ]
Prevent unintentional scrolling while dragging in Safari
Authored by: G-Mantle on Aug 25, '06 02:09:11PM

I use the context menu/cmd-click methods the previous posters mentioned for opening tabs, but I often drag stuff I want to read later up to the bookmarks bar so this still eliminates that irritating mini-scroll. Thanks!



[ Reply to This | # ]
Prevent unintentional scrolling while dragging in Safari
Authored by: sezme on Aug 25, '06 03:41:06PM

Seconding what Gmantle said, I'm extremely thankful for this hint. It's been a frustration for quite some time.



[ Reply to This | # ]
this is my all-time favorite hint
Authored by: snoozer on Aug 26, '06 09:17:24AM

I have been wanting to use Safari as my main browser for a long time, but the stupid overly sensitive auto-scrolling drove me nuts. Yes, I use Command-click or Command-Shift-click, as well as the contextual menu, to create new tabs. But sometimes I want to drag a link to the tab bar of a different window. Or I want to drag a link to some other browser because I've found Safari doesn't support it. Or I want to drag a link to the Finder as a way of saving it, or to an email message or a text editor. Or I'm doing a drag of *anything* (not just a URL) from some *other* application and my drag happens to cross the boundaries of a Safari window.

I submitted a complaint about this to Apple, and they said it was a known issue, but didn't suggest this workaround. Thanks to MacOSXHints for posting this sanity-saver. Now Safari is back in contention as my main browser. I can now enjoy the following benefits of Safari:

* snappier performance than Firefox,
* emacs keys for text navigation (handiest when editing blog or wiki posts),
* window saving between launches (thanks to Saft -- the lack of this feature ruled out Camino, which I otherwise love), and
* rich-text copy-paste.

I think there was something else that drove me nuts about Safari, but until I remember what that was, Safari is tentatively my main browser again.

Oh, and the ability to tweak scrolling sensitivity for *any* app is a nice bonus.



[ Reply to This | # ]
Prevent unintentional scrolling while dragging in Safari
Authored by: Oceanhints1 on Aug 26, '06 10:06:43AM

Or you could just click and drag a bit quicker.

Dragging quickly eliminates the mini-scroll effect!



[ Reply to This | # ]
Prevent unintentional scrolling while dragging in Safari
Authored by: snoozer on Aug 26, '06 12:00:47PM

Or I could just use this hint and eliminate the problem altogether.

In a Mac interface I expect simple drag and drop to work nicely when I choose to use it. When people have to suggest workarounds to such a fundamental operation, something is wrong.

What's wrong is that Safari's default auto-scroll setting is poorly chosen and adds needless inconvenience. This tip allows us to solve the problem for ourselves, and use drag and drop with less annoyance.



[ Reply to This | # ]
Prevent unintentional scrolling while dragging in Safari
Authored by: davidm on Aug 26, '06 07:41:16PM
Another way to get around the autoscroll problem is to install the free SafariStand. Rob wrote it up here:
http://www.macosxhints.com/article.php?story=20060104074227247&query=safaristand

Once SafariStand's sidebar is enabled, links dragged into it will open in a new tab without taking you away from the current tab. Dragging to the side instead of the top will prevent autoscrolling on most webpages.

Of course, this doesn't help you if you want to drag a link UP to the bookmarks bar, as I often do, so this hint is still a good one for me. But SafariStand does so many great things that I just had to mention it!


[ Reply to This | # ]