Conversation
…l handler - Extract Mode B measurement subsystem to measurement.ts (ResizeObserver, scroll correction, content size deferral, stayAtEnd) - Extract public API assembly to api.ts (data wrappers, scroll methods, event subscription, destroy teardown) - Simplify wheel handler: delegate to onScrollFrame instead of reimplementing scroll logic (fixes missing velocity:change and afterScroll events during wheel scroll) - Add re-entry guard in onScrollFrame to skip redundant native scroll events after programmatic scrollTop assignment - Deduplicate idle timeout handler (onScrollIdle + scheduleIdle) - Deduplicate click/dblclick traversal (findClickTarget) - Use positional params + short property keys for minification core.ts: 1513 → 1097 lines (-28%) Base minified: 24.1 → 23.6 KB (-0.5 KB) Base gzipped: 8.7 → 8.8 KB (+0.1 KB) Tests: 2763/2763 pass, typecheck clean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Metrics
No public API changes. Drop-in replacement.