prosemirror-view
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -0,1 +1,7 @@ | ||
## 1.5.3 (2018-09-24) | ||
### Bug fixes | ||
The cursor is now scrolled into view after keyboard driven selection changes even when they were handled by the browser. | ||
## 1.5.2 (2018-09-07) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-view", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -84,3 +84,3 @@ import {Selection, NodeSelection, TextSelection} from "prosemirror-state" | ||
else | ||
view.selectionReader.poll() | ||
view.selectionReader.poll("key") | ||
} | ||
@@ -87,0 +87,0 @@ |
@@ -85,2 +85,3 @@ import {TextSelection, NodeSelection} from "prosemirror-state" | ||
if (origin == "pointer") tr.setMeta("pointer", true) | ||
else if (origin == "key") tr.scrollIntoView() | ||
this.view.dispatch(tr) | ||
@@ -87,0 +88,0 @@ } else { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
736311
8323