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

Aperta
#573 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, react
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
JavaScript
Stelle
9.3k
Fork
1k
Merge medio
3g 8h
PR unite (30g)
4

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di react-grid-layout/react-draggable

Tutte le issue di react-grid-layout/react-draggable

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.