Fixes TOC closing on scroll

As advertised.