mirror of
https://github.com/xevidos/codiad.git
synced 2025-03-16 05:24:28 +01:00
Fixed issue where mouse position was set too often resulting in periodical line jumping.
This commit is contained in:
parent
a24a8daacc
commit
e9c40fa851
1 changed files with 8 additions and 6 deletions
|
@ -399,19 +399,21 @@
|
|||
this.highlightEntry(path, moveToTabList);
|
||||
|
||||
if(path != this.getPath()) {
|
||||
|
||||
codiad.editor.setSession(this.sessions[path]);
|
||||
this.history.push(path);
|
||||
$.get(this.controller, {'action':'focused', 'path':path});
|
||||
$.get(this.controller, {'action':'focused', 'path':path}, function() {
|
||||
|
||||
if( ! ( this.positions[`${path}`] === undefined ) ) {
|
||||
|
||||
this.setPosition( this.positions[`${path}`] );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* Check for users registered on the file. */
|
||||
this.check(path);
|
||||
|
||||
if( ! ( this.positions[`${path}`] === undefined ) ) {
|
||||
|
||||
this.setPosition( this.positions[`${path}`] );
|
||||
}
|
||||
|
||||
/* Notify listeners. */
|
||||
amplify.publish('active.onFocus', path);
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue