@codemirror/view 6.21.1 → 6.21.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 6.21.2 (2023-10-02)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a regression that broke dragging text from inside the editor.
6
+
1
7
  ## 6.21.1 (2023-10-02)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -4071,7 +4071,7 @@ handlers.mousedown = (view, event) => {
4071
4071
  let mouseSel = view.inputState.mouseSelection;
4072
4072
  if (mouseSel) {
4073
4073
  mouseSel.start(event);
4074
- return !mouseSel.dragging;
4074
+ return mouseSel.dragging === false;
4075
4075
  }
4076
4076
  }
4077
4077
  return false;
package/dist/index.js CHANGED
@@ -4067,7 +4067,7 @@ handlers.mousedown = (view, event) => {
4067
4067
  let mouseSel = view.inputState.mouseSelection;
4068
4068
  if (mouseSel) {
4069
4069
  mouseSel.start(event);
4070
- return !mouseSel.dragging;
4070
+ return mouseSel.dragging === false;
4071
4071
  }
4072
4072
  }
4073
4073
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.21.1",
3
+ "version": "6.21.2",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",