diff --git a/vendor-overwrites/colorpicker/colorview.js b/vendor-overwrites/colorpicker/colorview.js index 8d5d9f30..e9fdc53c 100644 --- a/vendor-overwrites/colorpicker/colorview.js +++ b/vendor-overwrites/colorpicker/colorview.js @@ -641,6 +641,12 @@ const len = styles.length; const end = styles[len - 2]; if (pos > end) return; + if (pos === end) { + return { + style: styles[len - 1], + index: len - 2, + }; + } const mid = (pos / end * (len - 1) & ~1) + 1; let a = mid; let b;