mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
17a0b407fc
This code is supposed to check if we have scrolled past the end of the page, and if we did, scroll back up to a more reasonable position. However, it seems to incorrectly trigger in other cases, and scroll the page back to the top, because getBoundingClientRect() occasionally still returns bogus values (even though we try to avoid that). This happens inconsistently when focussing the surface or closing a dialog. We can't correctly display the toolbar while scrolled past the end of the page. Removing this code causes it to go into an endless animation loop in that case. But that may be preferable… Bug: T219200 Change-Id: I152f2b39351ffd3c9799eea33cce95e05d2f9ab9 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
tests | ||
themes | ||
ui | ||
ve.MWutils.js |