mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Fix bug: cursor is not visible when you click outside of surface and then click back in the surface at the same offset where cursor was before
This commit is contained in:
parent
62d68be40a
commit
62a589e185
|
@ -62,16 +62,16 @@ es.SurfaceModel.prototype.getSelection = function() {
|
|||
*/
|
||||
es.SurfaceModel.prototype.select = function( selection, isManual ) {
|
||||
selection.normalize();
|
||||
if (
|
||||
/*if (
|
||||
( ! this.selection ) || ( ! this.selection.equals( selection ) )
|
||||
) {
|
||||
) {*/
|
||||
if ( isManual ) {
|
||||
this.breakpoint();
|
||||
}
|
||||
// check if the last thing is a selection, if so, swap it.
|
||||
this.selection = selection;
|
||||
this.emit( 'select', this.selection.clone() );
|
||||
}
|
||||
//}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue