-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fixed missing lock logic when dragging skeleton points #8084
Conversation
WalkthroughThe change introduced a conditional check to control the drag behavior in the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- cvat-canvas/src/typescript/canvasView.ts (1 hunks)
Additional comments not posted (1)
cvat-canvas/src/typescript/canvasView.ts (1)
1226-1236
: Review of thedraggable
function logic for skeleton pointsThe implementation of the
draggable
function for skeleton points now checks thelock
property before enabling drag functionality. This is a crucial fix as it ensures that locked elements are not draggable, which maintains the integrity of the data and prevents accidental modifications.
- Correctness: The use of the
lock
property to conditionally enable dragging is correct and aligns with typical UI behavior in similar applications.- Performance: The changes should not negatively impact performance as they introduce a simple conditional check.
- Security: No security concerns with this change.
- Maintainability: The change is localized and does not introduce any complex dependencies, making it easy to maintain.
Overall, this change effectively addresses the issue of missing lock logic when dragging skeleton points and should be included in the final merge.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8084 +/- ##
===========================================
- Coverage 83.61% 83.61% -0.01%
===========================================
Files 383 383
Lines 40449 40450 +1
Branches 3819 3820 +1
===========================================
- Hits 33822 33821 -1
- Misses 6627 6629 +2
|
Motivation and context
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.
Summary by CodeRabbit
lock
property of elements.