Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): gesture-model initial-state, callback failure handling #11321

Merged
merged 3 commits into from
May 1, 2024

Conversation

jahorton
Copy link
Contributor

@jahorton jahorton commented Apr 30, 2024

Fixes #11186.

Adds error-handling for the callbacks of gesture models passed to the gesture engine, adding stability when the models aren't properly defined. Also prevents a model with invalid initial state from evaluating any further, as that could invalidate assumptions based on said check in the path model.

The gesture engine uses configured callbacks in the specified gesture models to match the needs of the library's consumer. Should an error arise at critical points in that process, we need to ensure they don't destabilize the general core processes of the gesture engine, even if we do need to cancel the failed gesture-models.

@keymanapp-test-bot skip

@jahorton jahorton requested a review from mcdurdin as a code owner April 30, 2024 02:20
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Apr 30, 2024

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@jahorton jahorton merged commit e8c7f52 into beta May 1, 2024
19 of 20 checks passed
@jahorton jahorton deleted the fix/web/gesture-model-failure-handling branch May 1, 2024 00:52
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 17.0.317-beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants