Skip to main content

A piece with a lot of screenshots about the close tab behaviour in Google Chrome

Brilliant observation! Read on from www.theinvisibl.com:

A piece with a lot of screenshots about the close tab behaviour in Google Chrome: "

Ah, tabs.

Tabs, tabs, tabs. The specialist subject of UI experts everywhere. Should tabs just rearrange horizontally or also detach? How much vertical scroll buffer should a tab have before it detaches? Under what circumstances should it detach? What about reattaching?

This is a short piece concerned only with the different behaviours when closing tabs in Google Chrome, as I think these behaviours are fantastically thought through.


Closing tabs: a masterclass by Google Chrome

Let’s start by looking at some tabs in Safari (which was once what Chrome is before Chrome was).

If you add a number of tabs over the course of a session you will get something like this:

Tabs in Safari

And in Chrome you will get this:

Tabs in Chrome

Closing tabs from the right

The first difference to notice is that Safari puts the ‘close tab’ control on the left of the tab, while Chrome has it on the right.

Close button placement on Safari vs Chrome



So what? Let’s close a tab from the end of the row and see what happens. Here’s a before and after in Safari:



Closing a tab from the end of the row in Safari



And in Chrome:



Closing a tab from the end of the row in Chrome



What’s the difference here? Well, both browsers have resized their tabs to fill the newly-freed window space, but due to the placement of the close button on Chrome, the mouse pointer is immediately in position to close the next tab:



Closing a tab from the end of the row in Chrome



While Safari is not.



Closing a tab from the end of the row in Safari



See how the close-button target moves when closing a couple of tabs in Safari:



Showing where the close target moves when closing two in a row on Safari



There are no such problems in Chrome:



Showing where the close target moves when closing two in a row on Chrome



The Safari user has to hunt for the next close button each time, while the Chrome user can click the mouse button as many times as required in succession, with no movement of the mouse. Aha! It starts to make sense.



Closing tabs from the left



Or does it? This advantage is surely to be reversed when closing tabs from the left of the window? Quite right. Here is how the mouse pointer is required to move in Safari when closing a number of tabs at one time from the left:



Closing a tab from the left of the row in Safari



Nice work, Safari. Let’s watch Chrome screw this up:



Closing a tab from the left of the row in Chrome



Egads! It worked!



What has happened here? Well, while Safari resizes the width of the remaining tabs to fill the newly available space each time a tab is closed – Chrome does not. So when a tab is closed from the left in Chrome, no resizing takes place, the rest of the tabs move along one, lining up the next close button directly under the mouse pointer, ready for the next click.



Now, Chrome will resize the tabs to fit the remaining space, but only after the mouse has left the functional area at the top of the browser; that is, after the user has finished interacting with the tabs and has moved their attention elsewhere. Here it is, before and after:



Resizing tabs in Chrome



When the mouse moves from the toolbar area, the tabs resize.



Closing tabs from the middle of a group of tabs has exactly the same effect as above in Chrome – the tabs do not resize on close, only when the mouse pointer has left the toolbar. Safari immediately resizes the tabs. This means that closing tabs from the middle requires the user to hunt for each close button in Safari, while in Chrome, the buttons are lined up for the next click.



A couple of notes, conclusion




  1. Note that if tabs are closed by use of a keyboard shortcut in Chrome, this ‘delayed resizing’ (i.e. remaining tabs not filling the newly freed space after a tab has been closed) does not happen – the tabs resize immediately, just as they do in Safari. This is, therefore, a very clearly considered assist for those using the mouse.


  2. This resizing trait, although nuanced, is almost invisible to the user. In fact, it was completely invisible to me, for weeks, even though I was benefiting from this behaviour every day. It just worked correctly, in all cases – whether closing tabs from the left, right, or middle.


  3. My conclusion is probably this: when a system’s UI is designed in such a way that its behaviours start to disappear – that’s what I call ‘the invisible’.




Endnote: Why is the close button on the right?



Here’s a point: the ‘delayed resizing’ behaviour in Chrome that has been described above means that placing the close button either on the left or right of the tab would have produced the same effect – the ability to close a number of tabs without horizontal movement of the mouse pointer. So why have Google chosen to place the close buttons on the right? I don’t think it’s just to annoy John Gruber.



In this case, I think Google were governed by this thought: by default, an application should exhibit the least-funky behaviour. Although the delayed resizing trick is subtle, natural, and almost completely invisible (as long as the user isn’t actively considering the nature of the tabs themselves), it is still less normal than if the application did not exhibit that behaviour at all.



In placing the close button on the right, Google have assumed that in the majority of cases, users are going to be wanting to close the most recently opened tabs first (likely to be the ones to the far right of the tab group) and have accordingly placed the close button on the right. Why? Because not only does this give the user the ability to close a number of tabs in one go without moving the mouse pointer (which Safari does not), it also means that the app does not need to exhibit the ever-so-slightly less normal behaviour of the ‘delayed resizing’ in the most-common case.



One final point. Tabs open left-to-right because we read left-to-right. If all of the above really was considered by some genial, tab-obsessed Google employee, you would expect a right-to-left language version of the browser to not only open tabs the other way around, but to also put the close button on the left.



Here’s Google Chrome in Arabic:



Google Chrome in Arabic



I suppose Gruber could just use that.

"

Comments

Popular posts from this blog

Do You Need to Defragment a Mac’s Hard Drive?

--> Do You Need to Defragment a Mac's Hard Drive? About Focus on Macs In my mailbag this week, I found a couple of questions about defragmenting a Mac's hard drive. This question usually comes from new Mac users, or individuals who switch to the Mac from the Windows environment, where disk defragmentation utilities abound. Some individuals want to know which third-party disk defragmentation app they should use, or wonder why there is no defrag tool in OS X. Courtesy of Apple OS X does have disk defragmentation capabilities, but they're built into the system rather than a separate tool. Since OS X 10.2, Apple has included automatic defragmentation in the Mac OS. In essence, the Mac OS has built-in safeguards that attempt to prevent file fragmentation from occurring; it's also able to repair fragmentation, should it occur. This means that for the average Mac user, there really is no reason to worry about disk defragmentation, at least not as ...

Learn To Code

Even if just to get a better understanding of how computers work or learning how to customize your browsing experience, knowing the basics of coding opens ones eyes to possibilities once only known by a few.  Learn To Code Planet Cocoa If learning to program is even a minor goal for you,  Code Year (via  Brent Simmons ) might be just the encouragement you need. They promise to email you on a weekly basis with coding lessons to help you achieve your goal. I'm one of those computer programmers who downplays the difficulty of the profession, because "if I can do it, anybody can do it!" On the other hand, I have faced challenges that made me question whether I'm vaguely qualified for the job. What it boils down to is that programming is both incredibly simple and impossibly hard, like so many important things in life. There was a time when nobody knew how to write literary prose. The geniuses who invented it shared their special tool with a ...

Tips: Delete duplicate entries in "Open With..." dialog in Finder

Duplicates!!! When you control+click (or right click if you have enabled that option) on Mountain Lion, and there seems to be several duplicate applications listed and/or apps you no longer use, here is a Terminal shell script that will fix that.  Just copy and paste the code below in a Terminal window. /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user (Terminal can be found using Launchpad or Spotlight) After pasting, hit the Return key and allow time to run, then type "killAll Finder" without the quotes, and Return.  This will rebuild the "Open With..." menu.   If you do not see an immediate effect on the lists, restart your Mac.   Should be no need to restart. (Thanks, JK) Duplicates and old apps gone! If you wish, you can make a Service that will do it using Automator as well: Open Automator (Launch Pad or Applications folder) Create...