alibaba / alibaba/hooks

关于usedrag使用中的问题

Open
#2,665 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15k
Forks
2.8k
Avg merge
15h 7m
Merged PRs (30d)
2

Description

### 关于usedrag使用中的问题

在使用usedrag时候如果对dom元素设置圆角,拖拽时候则会显示周围白色
![20241031_171227](https://github.com/user-attachments/assets/0816516d-77a1-49c3-9c43-e95b718c4fc4)

有什么解决方案吗?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported white area with useDrag and a DOM element that has rounded corners. Read the useDrag entry point and its related tests, if present, and define done as preserving the element’s rounded appearance during dragging without the reported white surrounding area.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.