Skip to content

Commit

Permalink
Inline resetMouseMoved function directly into "mousemove" event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 3, 2021
1 parent 22fc454 commit 8b6304e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/librustdoc/html/static/main.js
Expand Up @@ -493,11 +493,7 @@ function defocusSearchBar() {
document.addEventListener("keypress", handleShortcut);
document.addEventListener("keydown", handleShortcut);

function resetMouseMoved(ev) {
mouseMovedAfterSearch = true;
}

document.addEventListener("mousemove", resetMouseMoved);
document.addEventListener("mousemove", function() { mouseMovedAfterSearch = true; });

var handleSourceHighlight = (function() {
var prev_line_id = 0;
Expand Down

0 comments on commit 8b6304e

Please sign in to comment.