Allow using the mouse in preview. Fixes #9291