Closed bsekachev closed 3 days ago
The change introduced a conditional check to control the drag behavior in the draggable
method of the CanvasViewImpl
class, based on the lock
property of elementState
. This ensures elements are only draggable if they are not locked, enhancing the interactivity and functionality of the canvas.
File | Change Summary |
---|---|
cvat-canvas/src/typescript/canvasView.ts |
Added a conditional check for elementState.lock in the draggable method call within the CanvasViewImpl class. |
In the canvas world of CodeRabbit's realm,
Elements lock, in order to helm.
The drag now dances, only when free,
A change so small, yet filled with glee.
Code rides swift, through logic's air,
Ensuring our canvas is handled with care. 🐇🎨
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?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Attention: Patch coverage is 20.00000%
with 8 lines
in your changes missing coverage. Please review.
Project coverage is 83.61%. Comparing base (
7aa699d
) to head (c4a972e
). Report is 1 commits behind head on develop.
Motivation and context
How has this been tested?
Checklist
develop
branchLicense
Summary by CodeRabbit
lock
property of elements.