Skip to main content

All Questions

0 votes
0 answers
51 views

Catching divs on top of each other during drag and drop operation with html drag drop

I'm building a drag drop application with React. I used html drag drop. My div elements are draggable. I want to make the background of the target div yellow when dragging and dropping another div ...
rumeysa yuk's user avatar
5 votes
3 answers
2k views

webpack can't resolve react-spring_core.legacy-esm.js in module of react-spring/web

My webpack.config.js const path = require("path"); const webpack = require("webpack"); const CopyWebpackPlugin = require("copy-webpack-plugin"); const googleConfig = ...
Khải Nguyễn's user avatar
1 vote
0 answers
401 views

how to implement drag and drop in react for touch screen and mouse screens

How to make onDrop event work for a custom Draggable component in React? I have created a custom Draggable component in React that uses mouse and touch events to move a div element around. I want to ...
noone's user avatar
  • 61
0 votes
1 answer
526 views

How to achieve this drag and drop layout in react native?

I wanted to implement drag and drop question-answer layout in react native. I have tried different libraries but have not gotten the desired output. can anyone suggest to me how to achieve this in ...
Divyata Chauhan's user avatar
1 vote
1 answer
135 views

Drag and Drop Template using JavaScript

After Dragging a block from left container to right container, it gets removed from left container. How to prevent from removing from left container and should drag and drop multiple times the same? I ...
Cullen's user avatar
  • 25
1 vote
0 answers
851 views

React Beautiful DND nested drag and drop

I am creating a side navbar with react-beautiful-dnd. The navigation consists of pages and pagegroups, the pagegroups consists of more pages and pagegroups we can add pagegroups and pages in any ...
Syed Muhammad Moiz's user avatar
0 votes
1 answer
477 views

Simple Drag and Drop in WebAssembly

I wish to add the ability to sense a drag event in my Blazor WebAssembly component. What I want is really simple (I thought). I don't need to actually drop the item, I just need to sense the id name ...
Greg W's user avatar
  • 91
1 vote
0 answers
288 views

calendar planner.The drag and drop is not working properly

i am building a daily planner with the help of GPT.each day of the calendar is divided in 30 minutes intervals (timeslots) and i can add tasks to each timeslot .i want to drag and drop tasks between ...
sot's user avatar
  • 25
0 votes
1 answer
63 views

Why my improvements didnt make this JS Drag n Drop script stop lagging?

I have this script that works very well, it does what I want... but the only problem is that it lags when moving divs fast. I have spent hours on internet trying to find a solution, like adding ...
user3722540's user avatar
2 votes
2 answers
734 views

Mouse event listeners not working after 'dragstart' is fired in Javascript

I am currently developing a drag and drop interface and would like to implement a feature that allows users to return a dragged object to its original position by right-clicking. In the demo below, ...
alph's user avatar
  • 189
0 votes
0 answers
43 views

useEffect not working to update localStorage data

I'm trying to save a list of completed to-dos when dragging it to the completed to-dos list, using the following code: useEffect(() => { localStorage.setItem("completedTodies", JSON....
Pedro Hugo's user avatar
0 votes
1 answer
481 views

I'm trying to automate drag and drop a draggable element in dart for flutter_integration testing

Trying to automate Drag and drop for testing. Element is of type Draggable<Student>. Tried drag() with longPress(). Tried drag with Offset and also tried moveTo() from TestGesture. But still ...
Mayur's user avatar
  • 1
0 votes
1 answer
234 views

Flutter Drag and Drop

I'm facing a problem implementing drag and drop in my project. I want dynamically add and delete draggable elements. The problem is that I can't understand how to get the reference to the widget I'm ...
Ivan Nizhniy's user avatar
1 vote
2 answers
75 views

Why is my eventlistener being removed after an element has been dropped using drag / drop API

Below I have a simplified version of my code where I can click a button to add new elements. These element should all be draggable so they can swap places and they should also have functionality to be ...
Oscar R's user avatar
  • 452
1 vote
1 answer
786 views

SwiftUI DropDestination Using Custom Transferable Type and Using UTI / UTType Not Working

I am trying to implement drag and drop using the Transferable protocol within my app. I followed the below tutorial but can't get it to work. I created this very simple example and it still doesn't ...
KevinF's user avatar
  • 79

15 30 50 per page
1 2 3
4
5
43