Skip to content

Commit fb8ead5

Browse files
committed
Updated resizeView, add or update user cursors to get proper view
1 parent a879b5b commit fb8ead5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

public/js/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,11 @@ function windowResizeInner() {
470470
clearMap();
471471
syncScrollToView();
472472
editor.setOption('viewportMargin', viewportMargin);
473+
//add or update user cursors
474+
for (var i = 0; i < onlineUsers.length; i++) {
475+
if (onlineUsers[i].id != personalInfo.id)
476+
buildCursor(onlineUsers[i]);
477+
}
473478
updateScrollspy();
474479
}, 100);
475480
}

0 commit comments

Comments
 (0)