Skip to content

Commit

Permalink
Removed "evt.target.style.cursor" lines from default index.html becau…
Browse files Browse the repository at this point in the history
…se they are unnecessary. These lines interfere with custom cursors set during runtime (the default arrow always comes back when the user clicks the game). (libgdx#5778)
  • Loading branch information
raeleus authored and NathanSweet committed Sep 2, 2019
1 parent cab1916 commit d1ef624
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@
function handleMouseDown(evt) {
evt.preventDefault();
evt.stopPropagation();
evt.target.style.cursor = 'default';
window.focus();
}

function handleMouseUp(evt) {
evt.preventDefault();
evt.stopPropagation();
evt.target.style.cursor = '';
}
document.getElementById('embed-html').addEventListener('mousedown', handleMouseDown, false);
document.getElementById('embed-html').addEventListener('mouseup', handleMouseUp, false);
Expand Down

0 comments on commit d1ef624

Please sign in to comment.