Bug 1843227: When scrolling with nsIAccessibleScrollType::SCROLL_TYPE_ANYWHERE, scrol...
commit78ea095d2ca659eb80cfe2d69df0de6a62a903c6
authorJames Teh <jteh@mozilla.com>
Tue, 8 Aug 2023 01:00:21 +0000 (8 01:00 +0000)
committerJames Teh <jteh@mozilla.com>
Tue, 8 Aug 2023 01:00:21 +0000 (8 01:00 +0000)
treeb4c6f99844169a9721c24f7ea14761fca2780ba8
parent0a2d00604fb65354dca175acdeefed8b65cefc56
Bug 1843227: When scrolling with nsIAccessibleScrollType::SCROLL_TYPE_ANYWHERE, scroll to center instead of nearest. r=eeejay

This is consistent with other browsers and thus more web compatible.
In particular, it makes infinite scroll work correctly on YouTube (e.g. when scrolling with screen readers), which didn't work previously.

Differential Revision: https://phabricator.services.mozilla.com/D185516
accessible/base/nsCoreUtils.cpp
accessible/tests/browser/scroll/browser_test_scrollTo.js