question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong position draggable item when orientation was changed

See original GitHub issue
<DraxProvider>
   <View style={styles.container}>
        <DraxList
          data={alphaData}
          renderItemContent={({ item }) => renderItem(item)}
          onItemReorder={({ fromIndex, toIndex }) => reorderItems(fromIndex, toIndex)}
          keyExtractor={(item) => item}
        />
      </View>
  </DraxProvider>

I am using DraxList. When I change orientation (landscape/portrait), draggable item has a wrong behavior. He is jumping ups outside of screen. I think this is happens because position is recalculates wrong when orientation changes.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
xdarkleonxcommented, Oct 1, 2021

Ok, thanks. It looks like this is a problem on my side, so I am closing the issue.

0reactions
lafioscacommented, Oct 1, 2021

Good luck. If you learn anything illuminating or discover a bug, please feel free to share here or reopen this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery draggable shows helper in wrong place after page ...
1. Use position:absolute; in your css. · 2. Make sure the parent element (event if it's the body) has overflow:auto; set. · 3....
Read more >
Drag Drop Sortable, mixed orientation support · Issue #13372
Instead of shifting elements via transform, the placeholder element should be moved (currently it remains in the place of the original dragging ...
Read more >
#7263 (Wrong position when draggable element or it's ...
When element or it's parent has transforms, eg. rotate or scale, the element translates to wrong position when dragging using JQuery UI Draggable....
Read more >
GtkPaned: setting position sometimes results in unexpected ...
When I click on Switch button, then i want to change the paned orientation and set position to 50%. Some when in past...
Read more >
Dynamically Update Positions During Drag Using react- ...
the dragged item's displayPosition needs to change; the item that has been passed by the dragged item needs its displayPosition to change as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found