engine icon indicating copy to clipboard operation
engine copied to clipboard

refactor: `PointerManager` multi-pointer logic optimization

Open cptbtptpbcptdtptp opened this issue 2 years ago • 3 comments

  • Optimization code.
  • Support for multiple pointers.

cptbtptpbcptdtptp avatar Sep 06 '22 09:09 cptbtptpbcptdtptp

#937

cptbtptpbcptdtptp avatar Sep 06 '22 10:09 cptbtptpbcptdtptp

image

cptbtptpbcptdtptp avatar Sep 06 '22 10:09 cptbtptpbcptdtptp

image

cptbtptpbcptdtptp avatar Sep 06 '22 10:09 cptbtptpbcptdtptp

Codecov Report

Base: 42.08% // Head: 44.06% // Increases project coverage by +1.97% :tada:

Coverage data is based on head (48feb36) compared to base (bb949ed). Patch coverage: 11.29% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           dev/0.9    #1005      +/-   ##
===========================================
+ Coverage    42.08%   44.06%   +1.97%     
===========================================
  Files          342      342              
  Lines        17950    17950              
  Branches      2495     2485      -10     
===========================================
+ Hits          7555     7909     +354     
+ Misses        9787     9387     -400     
- Partials       608      654      +46     
Impacted Files Coverage Δ
packages/core/src/Script.ts 88.05% <ø> (+4.47%) :arrow_up:
packages/core/src/input/InputManager.ts 45.56% <0.00%> (+7.29%) :arrow_up:
packages/core/src/input/enums/PointerPhase.ts 100.00% <ø> (ø)
packages/core/src/input/pointer/Pointer.ts 12.00% <9.52%> (-8.00%) :arrow_down:
packages/core/src/input/pointer/PointerManager.ts 28.35% <10.14%> (+6.40%) :arrow_up:
packages/core/src/input/enums/PointerButton.ts 100.00% <100.00%> (ø)
packages/core/src/DisorderedArray.ts 55.55% <0.00%> (-7.41%) :arrow_down:
packages/math/src/Color.ts 64.70% <0.00%> (-1.69%) :arrow_down:
packages/math/src/Matrix.ts 90.53% <0.00%> (+0.27%) :arrow_up:
... and 37 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov-commenter avatar Oct 21 '22 13:10 codecov-commenter