mediawiki-skins-Vector/resources
Nicholas Ray 80a111d0e4 Fix TOC section activation on link click bug
We want the link that the user has clicked inside the TOC to be "active"
(e.g. bolded) regardless of whether the browser's scroll position
corresponds to that section. Therefore, we need to temporarily ignore
section observer until the browser has finished scrolling to the section
(if needed).

However, because the scroll event happens asyncronously after the user
clicks on a link and may not even happen at all (e.g. the user has
scrolled all the way to the bottom and clicks a section that is already
in the viewport), determining when we should resume section observer is
a bit tricky.

Because a scroll event may not even be triggered after clicking the
link, we instead allow the browser to perform a maximum number of
repaints before resuming sectionObserver. Per T297614#7687656, Firefox
wasn't consistently activating the table of contents section that the
user clicked even after waiting 2 frames. After further investigation,
it sometimes waits up to 3 frames before painting the new scroll
position so we have that as the limit.

Bug: T297614
Change-Id: If3632529f58c15348a7200258f4f5999ea0dadc4
2022-02-08 14:45:16 -07:00
..
common Cleanup: Only need to import one variable file 2022-01-12 20:58:16 +00:00
mediawiki.less
skins.vector.es6 Fix TOC section activation on link click bug 2022-02-08 14:45:16 -07:00
skins.vector.js Drop search related feature flags 2022-01-31 21:00:22 +00:00
skins.vector.legacy.js Fix caction menu button from having a width that's 1px too small 2022-01-05 20:55:43 +00:00
skins.vector.search Update typescript to latest (v4.5.5) 2022-01-24 16:35:45 -07:00
skins.vector.styles Fixes for sticky header: 2022-02-04 15:36:35 -07:00
skins.vector.styles.legacy Address cache related FIXMEs 2021-10-05 21:53:09 +00:00
CheckboxHack.d.ts
CollapsibleTabsPlugin.d.ts
MediaWikiPageReady.d.ts
mw.d.ts Use centralized MediaWiki typescript definition 2021-07-26 21:27:12 +00:00
VectorResourceLoaderVirtualConfig.d.ts Update typescript to latest (v4.5.5) 2022-01-24 16:35:45 -07:00
vue.d.ts