Rewite for mobile devices - better handling of panel scrolling.