Prevent modal closures from scrolling to the top. Fixes #132.