Partially out-of-view window jumps and changes position when handle is touched
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Start by creating a minimal reproduction of a partially out-of-view window using the draggable component inside a scrolling parent. Compare the window position and parent scroll state before and after touching the title handle, using the reported onDragStop workaround as a reference. Done means the window does not jump, unexpectedly scroll into view, or change position relative to its peers.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi, I'm making a windowing system (for which, thanks for your utility).
But there's something odd. When I click on the title (which is the handle) of the pictured window, then it jumps fully into view (by scrolling the parent), and also changes its top/left co-ordinates (moving it away from its peers).
I've had to compensate by adding the following code to the onStop method (note the reversal of the deltaY values, and the counter-scroll operation):
const onDragStop = (e, data) => {
if (data.deltaY) {
panelFrameElementRef.current.scrollTop -= data.deltaY
}
setWindowConfigSpecs((oldState) => {
return {...oldState, top:data.y - data.deltaY, left: data.x}
})
}
Any suggestions?
- Lingua principale
- JavaScript
- Stelle
- 9.3k
- Fork
- 1k
- Merge medio
- 2h 35m
- PR unite (30g)
- 4
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di react-grid-layout/react-draggable
-
React.lazy(() => import('react-draggable')) fails TypeScript: typeof Draggable is not assignable to ComponentTypeForse già presa @tevinch l’ha presa 8 giorni fa. Apertabug ready-for-agent
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
react-grid-layout/react-draggable#822 · 2 commenti ·
-
bug needs-info
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
react-grid-layout/react-draggable#782 · 2 commenti ·
-
bug needs-info
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
react-grid-layout/react-draggable#772 · 1 commento ·
-
error in react 19Forse già presa @Juice-de-Orange l’ha presa 4 giorni fa. Apertabug ready-for-agent
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
react-grid-layout/react-draggable#771 · 14 commenti · 31 reazioni ·
-
enhancement ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
react-grid-layout/react-draggable#762 · 1 commento ·
Tutte le issue di react-grid-layout/react-draggable
Issue simili
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 85/100
capricorn86/happy-dom#2474 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
juice-shop/juice-shop#3662 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Add unit-test coverage for API URL resolution and device authentication error handlingForse già presa @Simranjit8933 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
fossasia/eventyay-checkin#170 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno