Providing both bounds (left, right) creates a weird snapping and then full-stop of resizing.

Đang mở
#573 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, react
Lĩnh vực
frontend

Hướng nghiên cứu

Start by reproducing the issue with the Draggable example, bounds={{ right: 580, right: 580 }}, nodeRef, and axis='x'. Trace how the bounds prop is handled during horizontal dragging, then verify that the component remains usable and allows the expected 1160px range without snapping to a full stop.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Assuming your component looked like this:

<Draggable bounds={{ right: 580, right: 580 }} nodeRef={nodeRef} axis={'x'}>
</Draggable>

What ends up happening is the drag snaps to whatever direction and then becomes unusable. The expected behavior is that of being able to drag on the X axis for 1160px (so, we shouldn't hit the edges of a 1200px container).

Ngôn ngữ chính
JavaScript
Star
9.3k
Fork
1k
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
4

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của react-grid-layout/react-draggable

Tất cả issue của react-grid-layout/react-draggable

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.