Skip to content

Commit

Permalink
chore: hotfix cursor binding test (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellvix authored May 23, 2024
1 parent e6a260e commit 952e5fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class Control {

// testing for braille cursor routing
constants.events.push([
documnent,
document,
'selectionchange',
function (e) {
const selection = document.getSelection();
Expand All @@ -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();
Expand Down

0 comments on commit 952e5fa

Please sign in to comment.