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.
package/dist/overtype.js CHANGED
@@ -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 OverType = (() => {
9
9
  var __defProp = Object.defineProperty;
@@ -2249,6 +2249,8 @@ ${blockSuffix}` : suffix;
2249
2249
  font-size: 0.85rem !important;
2250
2250
  color: #666 !important;
2251
2251
  flex-shrink: 0 !important; /* Don't shrink */
2252
+ z-index: 10001 !important; /* Above link tooltip */
2253
+ position: relative !important; /* Enable z-index */
2252
2254
  }
2253
2255
 
2254
2256
  /* Dark theme stats bar */
@@ -3359,6 +3361,12 @@ ${blockSuffix}` : suffix;
3359
3361
  }
3360
3362
  this.shortcuts = new ShortcutsManager(this);
3361
3363
  this.linkTooltip = new LinkTooltip(this);
3364
+ requestAnimationFrame(() => {
3365
+ requestAnimationFrame(() => {
3366
+ this.textarea.scrollTop = this.preview.scrollTop;
3367
+ this.textarea.scrollLeft = this.preview.scrollLeft;
3368
+ });
3369
+ });
3362
3370
  this.initialized = true;
3363
3371
  if (this.options.onChange) {
3364
3372
  this.options.onChange(this.getValue(), this);