Fix palette selction bug when scrolled.
Fix preview scrolling.