Skip to content

Commit

Permalink
[fix] onMouse(): Don't focus player on mouse click over title and des…
Browse files Browse the repository at this point in the history
…cription. Fixes issue #4: can't select text on the page
  • Loading branch information
Calciferz committed Jan 19, 2024
1 parent d201b9f commit 69323ae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions YoutubeKeysFix.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,6 @@
// Called when mouse button is pressed over an element.
// Debug log of mouse button event
//console.log("[YoutubeKeysFix] onMouse(): type=" + event.type, "button=" + event.button, "target=", [event.target, event]);

// click outside of areas focuses player
if (0 === getAreaOf(event.target)) {
return redirectFocus(event, playerElem);
}
}

function onWheel(event) {
Expand Down

0 comments on commit 69323ae

Please sign in to comment.