mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
Bug 1597742 a11y: Make ScrollSubstringToPoint always scroll, not only when invisible r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D60164 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
b225185523
commit
6ec7f65366
@ -1671,7 +1671,8 @@ void HyperTextAccessible::ScrollSubstringToPoint(int32_t aStartOffset,
|
||||
int16_t vPercent = offsetPointY * 100 / size.height;
|
||||
|
||||
nsresult rv = nsCoreUtils::ScrollSubstringTo(
|
||||
frame, range, ScrollAxis(vPercent), ScrollAxis(hPercent));
|
||||
frame, range, ScrollAxis(vPercent, WhenToScroll::Always),
|
||||
ScrollAxis(hPercent, WhenToScroll::Always));
|
||||
if (NS_FAILED(rv)) return;
|
||||
|
||||
initialScrolled = true;
|
||||
|
Loading…
Reference in New Issue
Block a user