We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 579dda9 commit af5ef52Copy full SHA for af5ef52
1 file changed
public/js/index.js
@@ -1845,7 +1845,7 @@ socket.on('disconnect', function (data) {
1845
socket.on('reconnect', function (data) {
1846
// sync back any change in offline
1847
emitUserStatus(true)
1848
- cursorActivity()
+ cursorActivity(editor)
1849
socket.emit('online users')
1850
})
1851
socket.on('connect', function (data) {
@@ -2702,7 +2702,7 @@ editorInstance.on('focus', function (editor) {
2702
2703
const cursorActivity = _.debounce(cursorActivityInner, cursorActivityDebounce)
2704
2705
-function cursorActivityInner () {
+function cursorActivityInner (editor) {
2706
if (editorHasFocus() && !Visibility.hidden()) {
2707
for (var i = 0; i < window.onlineUsers.length; i++) {
2708
if (window.onlineUsers[i].id === window.personalInfo.id) {
0 commit comments