mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
cdec86fb48
This solves 2 issues: 1. Paste scrolls to the top of the editable box because we temporarily moved the focus to the paste container, and then moved it back. We solve this by saving/restoring the scroll position. 2. Scroll position adjusts vertically when pasting (using key repeat) because we handle pastes with a setTimeout and multiple paste jobs will pile up before they can be finished. We solve this by disallowing paste until we are done handling the previous one. In the case of key repeat this only is observable as slowing the repeat rate. Thank you Christian for helping me solve this the old fashioned way - by sacrificing features you don't really need! Change-Id: I75bcf9843b57cdff0db9b6dea62d66d4d76ac011 |
||
---|---|---|
.. | ||
nodes | ||
styles | ||
ve.ce.BranchNode.js | ||
ve.ce.ContentBranchNode.js | ||
ve.ce.Document.js | ||
ve.ce.js | ||
ve.ce.LeafNode.js | ||
ve.ce.Node.js | ||
ve.ce.NodeFactory.js | ||
ve.ce.Surface.js | ||
ve.ce.SurfaceObserver.js |