Skip to content

Commit

Permalink
respect inputEnabled up the trail, #1116
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Mar 9, 2021
1 parent 90d2b73 commit 3f7946d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -1863,10 +1863,12 @@ class Input {
return;
}

const inputEnabledIndex = trail.getLastInputEnabledIndex();

for ( let i = trail.nodes.length - 1; i >= 0; bubbles ? i-- : i = -1 ) {

const target = trail.nodes[ i ];
if ( target.isDisposed || !target.inputEnabled ) {
if ( target.isDisposed || inputEnabledIndex <= i ) {
continue;
}

Expand Down

0 comments on commit 3f7946d

Please sign in to comment.