Fix scrolling the chanview on Unix

Fixes #948