mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-10 21:26:35 +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
@ -399,18 +399,20 @@
|
||||
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});
|
||||
}
|
||||
|
||||
/* Check for users registered on the file. */
|
||||
this.check(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);
|
||||
|
||||
/* Notify listeners. */
|
||||
amplify.publish('active.onFocus', path);
|
||||
|
Loading…
Reference in New Issue
Block a user