Prevent scrolling when enabling edit mode

Fixes #21