eclipse-scout / scout.rt

https://www.eclipse.org/scout/
Eclipse Public License 2.0
34 stars 39 forks source link

FocusContext: prevent scroll when validating focus on 'focusin' event #1214

Closed bschwarzent closed 1 week ago

bschwarzent commented 1 week ago

When a DOM element receives the focus, the current FocusContext updates its internal state and validates the focus (e.g. checks that the element is not covered by a glass pane). When doing so, it must not change the scroll position. This is especially relevant when the focus is changed to a different element, e.g. when clicking on a scroll container that we don't consider scrollable (tabindex=-2) but is natively focused by the browser.

381281