-
Notifications
You must be signed in to change notification settings - Fork 0
fix: select an asset without prior hover #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughA new Playwright integration test was added to verify asset transformation interactions in the UI. Internally, the picking and pointer event handling logic was refactored: pointer state now includes a callback for mouse down events, and picking operations in the render loop are optimized to run only when the pointer moves, reducing redundant GPU work. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Browser (Playwright)
participant App (Canvas/UI)
participant Pointer
participant PickManager
User->>Browser (Playwright): Uploads image, interacts with canvas
Browser (Playwright)->>App (Canvas/UI): Simulates mouse events (down/move/up)
App (Canvas/UI)->>Pointer: Receives mousedown, updates pointer, sets downCallback
App (Canvas/UI)->>PickManager: Triggers asyncPick if needed
PickManager->>Pointer: Calls downCallback after pick ID is read
Pointer->>App (Canvas/UI): Executes on_pointer_down logic
sequenceDiagram
participant RenderLoop
participant Pointer
participant PickManager
RenderLoop->>Pointer: Check current pointer position
alt Pointer moved
RenderLoop->>PickManager: Run picking pass
PickManager-->>RenderLoop: Return pick result
RenderLoop->>Pointer: Update lastPickPointer
else Pointer not moved
RenderLoop-->>RenderLoop: Skip picking pass
end
Suggested labels
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm error Exit handler never called! 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (6)
📒 Files selected for processing (4)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
🎉 This PR is included in version 0.1.0-next.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary by CodeRabbit
New Features
Optimization
Enhancements