Comments (7)
Also using latest version of npm packages if that helps.
from pragmatic-drag-and-drop.
The above issue is experienced when using latest Chrome browser.
There are no issues when using latest Safari
There is a similar issue on latest Firefox but it seems to not even pick up that a drag has started because no preview component is ever rendered and no drag events are fired. Dragging from within the tree does work as expected.
from pragmatic-drag-and-drop.
Switching the draggable element from a button
to a div
has weirdly enabled firefox to work as expected in all cases. That change has had no effect on Chrome.
from pragmatic-drag-and-drop.
This seems very strange indeed! We have not come across this type issue before. It's hard to know what could be going on without a standalone example. Would you be able to provide a stripped down version as a codesandbox (or similiar) so that we can take a look and help troubleshoot your issue?
from pragmatic-drag-and-drop.
I'll see if I can get a reproduction put together.
I've narrowed down the issue to the draggable being absolutely positioned over an iframe. If I remove the iframe or move the draggable so that it is not on top of the iframe it works as expected.
from pragmatic-drag-and-drop.
What I ended up doing to temporarily fix this issue is attaching a pointerDown
event to the draggable that temporarily sets pointer-events: none
on the iframe and then when the drag is finished, we remove that style.
It seems that the issue is that the iframe was stealing some drag events that was preventing pragmatic-dnd from doing its thing.
from pragmatic-drag-and-drop.
I encounter this before but it is my misunderstanding when doing the droppable container. I only have a single droppable container, if I change to all individual item to also encapsulate the draggable, then it was resolved.
from pragmatic-drag-and-drop.
Related Issues (20)
- Vertical trees HOT 3
- Inconsistent drag preview opacity HOT 3
- Adapter: Element adapter link in documentation broken. HOT 3
- Absence of handling events in capture phase: Design decision or just current scope? HOT 1
- TypeScript: Cannot find module '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter' HOT 2
- In desktop Safari drag preview can include elements behind container. HOT 7
- canDrop = false not working on tree root element HOT 5
- Making a next.js Link element draggable. HOT 1
- support drag and drop inside iframe HOT 1
- Feature: Make tree hitbox zones configurable
- Making an element draggable prevents user from highlighting and copying text content inside the element HOT 4
- Can't detect drag from external inside `textarea` HOT 6
- Drag and drop does not work in Chrome dev tools device mode HOT 1
- dynamic-table - Is there any plan to support to react 18?
- Mouse Pointer Stuck to Top Left in Drag Preview Despite Using `preserveOffsetOnSource` Utility HOT 3
- { source } is not ready on canDrop, onDrag in dropTargetForExternal
- Changelog / Release notes? HOT 2
- How to determine the distance from the edge of the container in a drop event?
- Bug: Safari Autoscroll Offset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pragmatic-drag-and-drop.