mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "MobileArticleTarget: don't access the surface after it's destroyed"
This commit is contained in:
commit
03bdace1ba
|
@ -241,7 +241,7 @@ ve.init.mw.MobileArticleTarget.prototype.onContainerScroll = function () {
|
|||
ve.init.mw.MobileArticleTarget.prototype.onSurfaceScroll = function () {
|
||||
var nativeSelection, range;
|
||||
|
||||
if ( ve.init.platform.constructor.static.isIos() ) {
|
||||
if ( ve.init.platform.constructor.static.isIos() && this.getSurface() ) {
|
||||
// iOS has a bug where if you change the scroll offset of a
|
||||
// contentEditable or textarea with a cursor visible, it disappears.
|
||||
// This function works around it by removing and reapplying the selection.
|
||||
|
|
Loading…
Reference in a new issue