Fix native scrolling freezes in touchlayer code.