Skip to content

Commit 8b6304e

Browse files
Inline resetMouseMoved function directly into "mousemove" event handler
1 parent 22fc454 commit 8b6304e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/librustdoc/html/static/main.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,7 @@ function defocusSearchBar() {
493493
document.addEventListener("keypress", handleShortcut);
494494
document.addEventListener("keydown", handleShortcut);
495495

496-
function resetMouseMoved(ev) {
497-
mouseMovedAfterSearch = true;
498-
}
499-
500-
document.addEventListener("mousemove", resetMouseMoved);
496+
document.addEventListener("mousemove", function() { mouseMovedAfterSearch = true; });
501497

502498
var handleSourceHighlight = (function() {
503499
var prev_line_id = 0;

0 commit comments

Comments
 (0)