engine icon indicating copy to clipboard operation
engine copied to clipboard

Optimize `drag` and `click` of `Pointer`

Open cptbtptpbcptdtptp opened this issue 11 months ago • 2 comments

  • [x] Script new callback about drag and drop
  • [x] Pointer new API
  • [x] Update pointer unit test

Summary by CodeRabbit

  • New Features

    • Enhanced pointer interaction functionality with new handling for drag events (onPointerBeginDrag, onPointerEndDrag, and onPointerDrop).
    • Introduced a new property to capture raycasting results and restructured entity tracking for improved interaction.
  • Bug Fixes

    • Improved accuracy and reliability of pointer event handling.
  • Tests

    • Added comprehensive tests for new pointer event features and raycasting hit results to ensure functionality and performance.
  • Refactor

    • Streamlined internal pointer event logic and entity tracking for better maintainability and performance.

cptbtptpbcptdtptp avatar Mar 18 '24 09:03 cptbtptpbcptdtptp