vim-web 0.5.0-dev.16 → 0.5.0-dev.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vim-web.js CHANGED
@@ -72792,7 +72792,7 @@ function scrollToSelection(div) {
72792
72792
  return;
72793
72793
  }
72794
72794
  if (rectElem.top < rectContainer.top || rectElem.top < 0) {
72795
- selection.scrollIntoView();
72795
+ selection.scrollIntoView({ block: "nearest", inline: "nearest" });
72796
72796
  }
72797
72797
  }
72798
72798
  const isControlKey = (e) => {