Fixed so that viewportDrag works even if no mouse button is selected.

Fixes issue #250.