Skip to content

Commit

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

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

function onWheel(event) {
Expand Down

0 comments on commit 7111ccf

Please sign in to comment.