chore(web): Merge branch 'feat/web/recognizer-multipoint-tracking' into feat/web/recognizer-input-unit-testing

This commit is contained in:
Joshua A. Horton 2022-07-27 10:10:12 +07:00
commit f04a0a488e
2 changed files with 5 additions and 8 deletions

View file

@ -118,7 +118,7 @@ namespace com.keyman.osk {
if(!event.buttons) {
if(this.hasActiveClick) {
this.hasActiveClick = false;
this.onInputMoveCancel(this.activeIdentifier);
this.onInputMoveCancel(this.activeIdentifier, sample);
}
return;
}
@ -128,7 +128,7 @@ namespace com.keyman.osk {
if(!ZoneBoundaryChecker.inputMoveCancellationCheck(sample, this.config, this.disabledSafeBounds)) {
this.onInputMove(this.activeIdentifier, sample);
} else {
this.onInputMoveCancel(this.activeIdentifier);
this.onInputMoveCancel(this.activeIdentifier, sample);
}
}
@ -141,8 +141,7 @@ namespace com.keyman.osk {
this.hasActiveClick = false;
}
const sample = this.buildSampleFromEvent(event);
this.onInputEnd(this.activeIdentifier, sample);
this.onInputEnd(this.activeIdentifier);
}
}
}

View file

@ -119,7 +119,7 @@ namespace com.keyman.osk {
if(!ZoneBoundaryChecker.inputMoveCancellationCheck(sample, this.config, this.safeBoundMaskMap[touch.identifier])) {
this.onInputMove(touch.identifier, sample);
} else {
this.onInputMoveCancel(touch.identifier);
this.onInputMoveCancel(touch.identifier, sample);
}
}
}
@ -134,9 +134,7 @@ namespace com.keyman.osk {
this.preventPropagation(event);
const sample = this.buildSampleFromTouch(touch);
this.onInputEnd(touch.identifier, sample);
this.onInputEnd(touch.identifier);
}
}
}