Fix bug in selection-change-avoiding check
Fix bug in selection-change-avoiding check

FIX: Fix a bug that prevented the DOM selection from being updated
when the new position was near the old one in some circumstances.

See https://discuss.prosemirror.net/t/weird-enter-keypress-behavior-in-nested-block-node/736/1

ProseMirror/prosemirror-view