feat(pointer): add createPointerVelocity kinematics and momentum decay tracker - #1042
feat(pointer): add createPointerVelocity kinematics and momentum decay tracker#1042deny-dz wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: 469ca1e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Review limit reached
Next review available in: 56 minutes Limit details: You’ve used all 4 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi there! Thank you for all the PRs. This is quite a bit of effort. These are all designed for our 1.0 primitives. I'm wondering how you'd like to have these ported to 2.0 though as that is mostly our primary focus moving forward. Would you like to adapt to both or perhaps lean into improving 2.0? |
|
Hi @davedbase! We're definitely leaning 100% into Solid 2.0. We'll update the PRs to match Solid 2.0 conventions (using |
Yes please, no |
Summary
This PR introduces
createPointerVelocityto@solid-primitives/pointer:vx,vy, and scalarspeedin pixels per second) from raw pointer movement deltas (Changes
packages/pointer/src/velocity.ts:createPointerVelocityimplementation.packages/pointer/src/index.ts: Re-export velocity helpers.packages/pointer/test/velocity.test.ts: Vitest test suite..changeset/pointer-velocity-momentum.md: Minor changeset.