show 50 ticks on the mini progress bar at most
expand/collapse TOC only by tap on the icon
Merge pull request #1019 from chrox/fix_1017

Fix #1017