Fix broken middle-clicking.

Fixes #1.