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

Re: [whatwg] Should scrollbars move focus?

From: Ojan Vafai <ojan@chromium.org>
Date: Wed, 31 Oct 2012 16:08:20 -0700
Message-ID: <CANMdWTuU7Fv0vpMUFHcZHhpY6=Ke2wnnFN7RzvSbbFYCjo7cfQ@mail.gmail.com>
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: WHATWG <whatwg@whatwg.org>, Elliott Sprehn <esprehn@gmail.com>, Ian Hickson <ian@hixie.ch>
On Wed, Oct 31, 2012 at 3:46 PM, Robert O'Callahan <robert@ocallahan.org>wrote:

> On Thu, Nov 1, 2012 at 11:16 AM, Ojan Vafai <ojan@chromium.org> wrote:
>> Does anyone from Mozilla know why textarea scrollbars are special-cased in
>> Gecko? Would be good to know if there is a web compatibility requirement
>> here.
> I don't know of one off the top of my head. I can't see how it could be a
> compatibility requirement.
> I think what's happening here in Gecko is that a click on a focusable
> element moves focus, and a click on an element's scrollbars counts as a
> click on the element. So clicking on the scrollbar of a <textarea> or
> contenteditable <div> (or even a <button> containing content with a
> scrollbar, if you're mad) moves focus to that element. I think this is
> quite reasonable actually.
> Example: http://people.mozilla.org/~roc/scrollbar-focus.html

I see. Thanks for the clarification. I don't feel strongly about this.
Either direction seems fine. Although, it doesn't violate every native
platform's scrollbar convention.
Received on Wednesday, 31 October 2012 23:09:14 UTC

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