Re: [csswg-drafts] [cssom-view] Add notIfViewed to ScrollIntoViewOptions; add FocusScrollOptions

OK, then I think I have misunderstood the requirements. I thought you were happy with a way to turn off scrolling entirely (with `preventScroll` in `focus()`).

So you want to be able to have no scrolling for partially in view, and scroll into view for entirely out of view, correct?

Maybe instead of having increasingly complicated dictionaries to cover all possible cases, we could have *only* `preventScroll` in `focus()` (and `select()` or whatever else), then a separate API to check if an element is entirely in view, partially in view, or entirely out of view, and finally you can call (or not) `scrollIntoView()` with the positioning you want for the given case?

-- 
GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/1805#issuecomment-331391175 using your GitHub account

Received on Friday, 22 September 2017 08:56:02 UTC