Skip to main content

All Questions

0 votes
1 answer
507 views

How to get the text of dragged item in javascript

I am learning about drag and drop and I created this simple script (Run script) to check function onDrag(ev) { console.log('You are dragging', ev.target.className) } function onDrop(ev) { ev....
elektra's user avatar
  • 85
2 votes
0 answers
70 views

How to prevent that a draggable widget overflow it's parent in flutter

I'm trying to build a tool to create database models with flutter and I want that when I create a widget (that will be the representation of a table) it could be dragged just inside of it's parent, I ...
peptidoglycan's user avatar
2 votes
1 answer
406 views

react-beautiful-dnd draggable flickering (but only some of the draggables children)

I am having trouble getting react-beautiful-dnd to work because children of the draggable are flickering after reordering: No external requests happen in the background, the app stores the change ...
felixmp's user avatar
  • 341
0 votes
1 answer
2k views

Framer Motion ReOrder behaviour not reordering as expected

I am currently trying to implemented a draggable re-orderable list with Framer Motion. I am trying to reproduce the following behaviour: https://codesandbox.io/s/framer-motion-5-drag-to-reorder-lists-...
csch99's user avatar
  • 15
0 votes
1 answer
488 views

drag a div and drop in a container is not happening in react

in drop function data value is getting empty ,so how to fix that if I want to drag and drop a div to a particular container. instead of getting the id its not fetching any value so its throws an error ...
Sougata Mukherjee's user avatar
0 votes
1 answer
441 views

How to get {x, y} position of dropped element on drop section instead absolute position in React Dnd

I am trying to drag pointer to drop section but I am not able to get position {x, y} relative to drop section. Using React DnD 16.0.1
Suraj Bande's user avatar
1 vote
0 answers
485 views

SwiftUI: Rearrange items in Scrollable LazyVGrid with Draggable and DropDestination

I'm trying to rearrange or move items in a LazyVGrid inside a ScrollView using .draggable and .dropDestination view modifier based on the post here. My problem is that I need to know which item is ...
Ludvig Kratz's user avatar
0 votes
1 answer
125 views

Restore original position draggable element when it's dropped in the wrong place HTML + Javascript

Im tryinig to use this code which another spoke of him in another post but that modified a little. http://jsfiddle.net/fsy37kv4/ I would like when some circle was dropped in a wrong position, the ...
alfredo49's user avatar
0 votes
0 answers
293 views

Flutter: change state when dragging

I have a color with a certain opacity, and i would like the opacity to change if a Draggable child is moved to the right. The code I have currently looks like this: Scaffold( appBar: ...
Ruder Buster's user avatar
3 votes
0 answers
179 views

Drag and Drop ghost trailing on drop w/React

I am having this problem when I try to reorder elements by dragging them. The reorder works but the functionality of changing places is not performing as desired. When you drag an element/image from ...
Petrit's user avatar
  • 31
0 votes
2 answers
461 views

Drag n drop in block area

I ran into this problem and don't know how to solve it. I need to drag and drop a point inside the map and save its new coordinates relative to the map. Let's say I have a layout like in the picture I'...
blurryfacebeat's user avatar
1 vote
1 answer
5k views

How to use useDraggable / useSortable hooks of dnd-kit library properly?

I'm trying to create a simple calculator with React and dnd-kit. Elements of calculator can be dragged to droppable area and can be sorted inside of it. You can see a problem on the gif: when I drag ...
rgdzv's user avatar
  • 485
1 vote
1 answer
302 views

CSS content tag in style disallows to drag element

I need to make draggable elements in html with image changeable through replacing style of the element. The picture I insert with content style tag. But when I use content, the element looses ability ...
Anton's user avatar
  • 13
1 vote
0 answers
123 views

How to drag a plot line and back into the resulting line parameters in R Shiny?

Here's a long-shot question. The below code allows the user to build and alter a scaled-logarithmic curve by altering its 4 parameters, via slider inputs. I'd like to reverse the process, so the user ...
Curious Jorge - user9788072's user avatar
2 votes
1 answer
2k views

Flutter Grid View Reorder & Drag Drop onto Another Item and Merge

I have been trying to add drag/drop support to my app, currently what I have come with is using this library: reorderable_grid_view I used this example code: code link The reason I used this library ...
Ali Yucel Akgul's user avatar

15 30 50 per page
1
3 4
5
6 7
43