W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2012

Re: [whatwg] Should scrollbars move focus?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 19 Oct 2012 15:42:35 -0700
Message-ID: <CAAWBYDCbspkdn2xiFgKCyoT1o9L1njdNm6ZQJfAdMDMGY0vdNw@mail.gmail.com>
To: Elliott Sprehn <esprehn@gmail.com>
Cc: WHATWG <whatwg@whatwg.org>, Ojan Vafai <ojan@chromium.org>
On Fri, Oct 19, 2012 at 3:34 PM, Elliott Sprehn <esprehn@gmail.com> wrote:
> I was working on a bug [1][2] recently where authors had complained
> about WebKit's behavior where clicking a scrollbar unfocuses the
> activeElement. What's particularly quirky is that the window scrollbar
> never moves focus in any browser I tried, but overflow scrollbars
> inside the page *do* move focus in WebKit, IE and Opera but not in
> Gecko.
> This behavior seems unfortunate because it means scrolling a form
> inside an overflow div moves focus from where you were typing and it's
> also really weird that window scrollbars are special.
> What's the correct behavior here? It would be best if all the browsers
> could be consistent, but I'm not sure the existing common behavior is
> best. :)
> [1] https://bugs.webkit.org/show_bug.cgi?id=96335
> [2] http://code.google.com/p/chromium/issues/detail?id=51469

I don't have strong opinions, and would be swayed by a decent
rationale, but I lean toward making scrollbars never steal focus.
It's weird that you can mousewheel or touch scroll without killing
your focus, but using the bar steals it.

Received on Friday, 19 October 2012 22:45:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:17 UTC