Skip to content

Commit 35a515c

Browse files
jzhang20133Jialin Zhang
andauthored
make user name hover show up faster and margin area larger (#259)
Co-authored-by: Jialin Zhang <[email protected]>
1 parent 2bd9383 commit 35a515c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/collaboration/src/cursors.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ const userHover = hoverTooltip(
251251
continue;
252252
}
253253
// Use some margin around the cursor to display the user.
254-
if (head.index - 1 <= pos && pos <= head.index + 1) {
254+
if (head.index - 3 <= pos && pos <= head.index + 3) {
255255
return {
256256
pos: head.index,
257257
above: true,
@@ -271,7 +271,8 @@ const userHover = hoverTooltip(
271271
return null;
272272
},
273273
{
274-
hideOn: (tr, tooltip) => !!tr.annotation(remoteSelectionsAnnotation)
274+
hideOn: (tr, tooltip) => !!tr.annotation(remoteSelectionsAnnotation),
275+
hoverTime: 0
275276
}
276277
);
277278

0 commit comments

Comments
 (0)