Skip to content

In InputModelerState, distinguish between total time elapsed and elapsed time of the last modeled input#521

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_876277703
Mar 2, 2026
Merged

In InputModelerState, distinguish between total time elapsed and elapsed time of the last modeled input#521
copybara-service[bot] merged 1 commit intomainfrom
test_876277703

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Feb 27, 2026

In InputModelerState, distinguish between total time elapsed and elapsed time of the last modeled input

This refactor makes the modeling code more uniform in how it calculates traveled distance and elapsed time, factors out a bit more bookkeeping from individual input modeler implementations into the StrokeInputModeler core, and helps us be a little more disciplined about using real-input vs. full-stroke elapsed time in tip modeler calculations.

@copybara-service copybara-service bot force-pushed the test_876277703 branch 2 times, most recently from 7c87e0f to 125d7c5 Compare March 2, 2026 17:34
…apsed time of the last modeled input

This refactor makes the modeling code more uniform in how it calculates traveled distance and elapsed time, factors out a bit more bookkeeping from individual input modeler implementations into the `StrokeInputModeler` core, and helps us be a little more disciplined about using real-input vs. full-stroke elapsed time in tip modeler calculations.

PiperOrigin-RevId: 877459449
@copybara-service copybara-service bot merged commit f3df50b into main Mar 2, 2026
@copybara-service copybara-service bot deleted the test_876277703 branch March 2, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants