Skip to content

Commit

Permalink
chore: continuing to test cursor routing
Browse files Browse the repository at this point in the history
  • Loading branch information
ellvix committed Jun 12, 2024
1 parent e0f7354 commit 05908db
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/js/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,18 +285,19 @@ class Control {

console.log('Testing cursor routing');
console.log('Selection:', selection);
console.log('Target:', selection.anchorNode);
console.log('Offset:', offset);
console.log('Target:', e.target);

position.x = offset;
updateInfoThisRound = true;
isAtEnd = lockPosition();
let testUpdate = true;
let testEnd = lockPosition();

// update display / text / audio
if (updateInfoThisRound && !isAtEnd) {
if (testUpdate && !testEnd) {
UpdateAll();
}
if (isAtEnd) {
if (testEnd) {
audio.playEnd();
}
});
Expand Down

0 comments on commit 05908db

Please sign in to comment.