overtype 2.0.2 → 2.0.4

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.
@@ -1,9 +1,9 @@
1
1
  /**
2
- * OverType v2.0.2
2
+ * OverType v2.0.4
3
3
  * A lightweight markdown editor library with perfect WYSIWYG alignment
4
4
  * @license MIT
5
- * @author Demo User
6
- * https://github.com/demo/overtype
5
+ * @author David Miranda
6
+ * https://github.com/panphora/overtype
7
7
  */
8
8
  var __defProp = Object.defineProperty;
9
9
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -2223,6 +2223,8 @@ function generateStyles(options = {}) {
2223
2223
  font-size: 0.85rem !important;
2224
2224
  color: #666 !important;
2225
2225
  flex-shrink: 0 !important; /* Don't shrink */
2226
+ z-index: 10001 !important; /* Above link tooltip */
2227
+ position: relative !important; /* Enable z-index */
2226
2228
  }
2227
2229
 
2228
2230
  /* Dark theme stats bar */
@@ -3333,6 +3335,12 @@ var _OverType = class _OverType {
3333
3335
  }
3334
3336
  this.shortcuts = new ShortcutsManager(this);
3335
3337
  this.linkTooltip = new LinkTooltip(this);
3338
+ requestAnimationFrame(() => {
3339
+ requestAnimationFrame(() => {
3340
+ this.textarea.scrollTop = this.preview.scrollTop;
3341
+ this.textarea.scrollLeft = this.preview.scrollLeft;
3342
+ });
3343
+ });
3336
3344
  this.initialized = true;
3337
3345
  if (this.options.onChange) {
3338
3346
  this.options.onChange(this.getValue(), this);