W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2008

[whatwg] scrollIntoView jarring?

From: David Bolter <david.bolter@utoronto.ca>
Date: Wed, 30 Apr 2008 13:58:16 -0400
Message-ID: <4818B338.6090003@utoronto.ca>
I have a concern about "3.5.3 Scrolling elements into view":  

In addition to concerns expressed by Brad Fults 
I want to raise a concern about the behaviour of scrollIntoView. 
Specifically I would ask that:

1. scrollIntoView not do anything in the case that the element is 
already fully visible (possibly in the middle of the viewport), or
2. ensureElementIsVisible to be added as described by Daniel Glazman 

My concern is that with the movement towards rich interactive web 
interfaces, we are going to be seeing complex widgets that will need to 
call such functions fairly often, which may lead to a jarring experience 
if the function always butts the element to the edge of the viewport. It 
would be a shame to jar users when unnecessary. I realize there is a 
(hairy) way to do this but it would be nice to have the convenience.

Aside: we would like to recommend authors call such a method when using 
ARIA's activedescendant (draft spec).

Received on Wednesday, 30 April 2008 10:58:16 UTC

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