Markdown: Another try at fixing the scroll jumping

When typing fast the webview would jump to the top, which was super
annoying. This is an attempt to fix the symptom but it doesn't really
address the real cause. Thanks to "moebiuseye" for the patch.