chore(release): components
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
||||
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||
|
||||
// This is CodeMirror (https://codemirror.net), a code editor
|
||||
// This is CodeMirror (https://codemirror.net/5), a code editor
|
||||
// implemented in JavaScript on top of the browser's DOM.
|
||||
//
|
||||
// You can find some technical background for some of the code below
|
||||
@@ -3697,13 +3697,13 @@
|
||||
NativeScrollbars.prototype.zeroWidthHack = function () {
|
||||
var w = mac && !mac_geMountainLion ? "12px" : "18px";
|
||||
this.horiz.style.height = this.vert.style.width = w;
|
||||
this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none";
|
||||
this.horiz.style.visibility = this.vert.style.visibility = "hidden";
|
||||
this.disableHoriz = new Delayed;
|
||||
this.disableVert = new Delayed;
|
||||
};
|
||||
|
||||
NativeScrollbars.prototype.enableZeroWidthBar = function (bar, delay, type) {
|
||||
bar.style.pointerEvents = "auto";
|
||||
bar.style.visibility = "";
|
||||
function maybeDisable() {
|
||||
// To find out whether the scrollbar is still visible, we
|
||||
// check whether the element under the pixel in the bottom
|
||||
@@ -3714,7 +3714,7 @@
|
||||
var box = bar.getBoundingClientRect();
|
||||
var elt = type == "vert" ? document.elementFromPoint(box.right - 1, (box.top + box.bottom) / 2)
|
||||
: document.elementFromPoint((box.right + box.left) / 2, box.bottom - 1);
|
||||
if (elt != bar) { bar.style.pointerEvents = "none"; }
|
||||
if (elt != bar) { bar.style.visibility = "hidden"; }
|
||||
else { delay.set(1000, maybeDisable); }
|
||||
}
|
||||
delay.set(1000, maybeDisable);
|
||||
@@ -5204,7 +5204,7 @@
|
||||
var range = sel.ranges[i];
|
||||
var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i];
|
||||
var newAnchor = skipAtomic(doc, range.anchor, old && old.anchor, bias, mayClear);
|
||||
var newHead = skipAtomic(doc, range.head, old && old.head, bias, mayClear);
|
||||
var newHead = range.head == range.anchor ? newAnchor : skipAtomic(doc, range.head, old && old.head, bias, mayClear);
|
||||
if (out || newAnchor != range.anchor || newHead != range.head) {
|
||||
if (!out) { out = sel.ranges.slice(0, i); }
|
||||
out[i] = new Range(newAnchor, newHead);
|
||||
@@ -9854,7 +9854,7 @@
|
||||
|
||||
addLegacyProps(CodeMirror);
|
||||
|
||||
CodeMirror.version = "5.65.5";
|
||||
CodeMirror.version = "5.65.6";
|
||||
|
||||
return CodeMirror;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
||||
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||
|
||||
// This is CodeMirror (https://codemirror.net), a code editor
|
||||
// This is CodeMirror (https://codemirror.net/5), a code editor
|
||||
// implemented in JavaScript on top of the browser's DOM.
|
||||
//
|
||||
// You can find some technical background for some of the code below
|
||||
@@ -3697,13 +3697,13 @@
|
||||
NativeScrollbars.prototype.zeroWidthHack = function () {
|
||||
var w = mac && !mac_geMountainLion ? "12px" : "18px";
|
||||
this.horiz.style.height = this.vert.style.width = w;
|
||||
this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none";
|
||||
this.horiz.style.visibility = this.vert.style.visibility = "hidden";
|
||||
this.disableHoriz = new Delayed;
|
||||
this.disableVert = new Delayed;
|
||||
};
|
||||
|
||||
NativeScrollbars.prototype.enableZeroWidthBar = function (bar, delay, type) {
|
||||
bar.style.pointerEvents = "auto";
|
||||
bar.style.visibility = "";
|
||||
function maybeDisable() {
|
||||
// To find out whether the scrollbar is still visible, we
|
||||
// check whether the element under the pixel in the bottom
|
||||
@@ -3714,7 +3714,7 @@
|
||||
var box = bar.getBoundingClientRect();
|
||||
var elt = type == "vert" ? document.elementFromPoint(box.right - 1, (box.top + box.bottom) / 2)
|
||||
: document.elementFromPoint((box.right + box.left) / 2, box.bottom - 1);
|
||||
if (elt != bar) { bar.style.pointerEvents = "none"; }
|
||||
if (elt != bar) { bar.style.visibility = "hidden"; }
|
||||
else { delay.set(1000, maybeDisable); }
|
||||
}
|
||||
delay.set(1000, maybeDisable);
|
||||
@@ -5204,7 +5204,7 @@
|
||||
var range = sel.ranges[i];
|
||||
var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i];
|
||||
var newAnchor = skipAtomic(doc, range.anchor, old && old.anchor, bias, mayClear);
|
||||
var newHead = skipAtomic(doc, range.head, old && old.head, bias, mayClear);
|
||||
var newHead = range.head == range.anchor ? newAnchor : skipAtomic(doc, range.head, old && old.head, bias, mayClear);
|
||||
if (out || newAnchor != range.anchor || newHead != range.head) {
|
||||
if (!out) { out = sel.ranges.slice(0, i); }
|
||||
out[i] = new Range(newAnchor, newHead);
|
||||
@@ -9854,7 +9854,7 @@
|
||||
|
||||
addLegacyProps(CodeMirror);
|
||||
|
||||
CodeMirror.version = "5.65.5";
|
||||
CodeMirror.version = "5.65.6";
|
||||
|
||||
return CodeMirror;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user