Skip to content

Commit 83006a2

Browse files
author
pdavidc
committed
Repaired an issue where WorldWindow emitted navigator events incorrectly indicated the last input event
1 parent c9d4894 commit 83006a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worldwind/src/main/java/gov/nasa/worldwind/BasicWorldWindowController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public boolean onTouchEvent(MotionEvent event) {
7070
boolean handled = false;
7171

7272
for (int idx = 0, len = this.allRecognizers.size(); idx < len; idx++) {
73-
handled = this.allRecognizers.get(idx).onTouchEvent(event);
73+
handled |= this.allRecognizers.get(idx).onTouchEvent(event); // use or-assignment to indicate if any recognizer handled the event
7474
}
7575

7676
return handled;

0 commit comments

Comments
 (0)