fix #1024

if toc item has expand/collapse state and tap select on the left side
the state switch action is triggered, otherwise goto the
linked page.