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

Re: [whatwg] Should scrollbars move focus?

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 19 Oct 2012 22:43:39 +0000 (UTC)
To: Elliott Sprehn <esprehn@gmail.com>
Message-ID: <Pine.LNX.4.64.1210192242460.2471@ps20323.dreamhostps.com>
Cc: WHATWG <whatwg@whatwg.org>, Ojan Vafai <ojan@chromium.org>
On Fri, 19 Oct 2012, Elliott Sprehn wrote:
> I was working on a bug 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. :)

>From the spec's point of view, I think this is just something where you're 
supposed to try to match the host platform conventions.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 19 October 2012 22:45:14 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:46 UTC