Skip to content

Commit 0db4358

Browse files
committed
Fix authorship might losing update event because of throttling
1 parent b1ec3ba commit 0db4358

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2443,7 +2443,7 @@ function updateInfo(data) {
24432443
updateAuthorship();
24442444
}
24452445
}
2446-
var updateAuthorship = _.throttle(function () {
2446+
var updateAuthorship = _.debounce(function () {
24472447
editor.operation(updateAuthorshipInner);
24482448
}, 50);
24492449
function initMark() {

0 commit comments

Comments
 (0)