diff --git a/src/js/controls.js b/src/js/controls.js index 3b24a289..ba691b0e 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -280,7 +280,7 @@ class Control { // testing for braille cursor routing constants.events.push([ - documnent, + document, 'selectionchange', function (e) { const selection = document.getSelection(); @@ -291,7 +291,7 @@ class Control { console.log('Offset:', offset); console.log('Target:', e.target); - if ((e.target = constants.brailleInput)) { + if (e.target == constants.brailleInput) { position.x = offset; updateInfoThisRound = true; isAtEnd = lockPosition();