Limit selection width to a gridSize.

Fixes #1.