Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
1 vote
0 answers
180 views

Drag and drop sequence of mouse events not working as expected

As a continuation to my other question, I tried another approach to simulate drag and drop functionality using mouse events. First, here's a list of draggable elements that can be reordered on drag ...
nlblack323's user avatar
3 votes
1 answer
2k views

Why is the Transform and Translate data null/undefined using DND-Kit

Firstly, Thank you for looking at my problem. I am trying to implement and learn the logic of dnd-kit in react, & I have created this webapp where the elements that are being mapped into a ...
roverrr's user avatar
  • 69
1 vote
2 answers
166 views

Get Data from Local Storage JavaScript

I work on the Kanban board app, it contains three columns for not started, In progress, and Completed tasks, I can add a new task, edit it, delete it, and drag and drop it from column to column. I ...
Mohammed-Abol-Fotouh's user avatar
0 votes
1 answer
452 views

how to make drag-drop list in HTML and send List order to asp.net core backend?

I am working on an HTML file When I show a list on a page, I want the user to be able to drag and drop items from the list to a part of the same page. The list contains sample questions of a lesson, ...
Pezhvak's user avatar
  • 49
0 votes
0 answers
21 views

How to prevent element dragged from leaving its place

Please check the live code: I am trying to make a drag and drop but dragged item must be duplication (not moved from one place to another) let injectableEL = '' function onDrag(ev) { console....
elektra's user avatar
  • 85
-2 votes
1 answer
26 views

How can I make a dragImage opaque with pure JS?

How can I make a dragImage opaque with pure JS? My code doesn't work for some reason https://stackblitz.com/edit/js-azetx8?file=index.js
В Х's user avatar
  • 37
1 vote
1 answer
219 views

JavaScript Drag and Drop Swap Items

I'm trying to create a simple drag & drop example to use that will allow swapping of items. For example: Item 0 Item 1 Item 2 Item 3 If I drag and drop "Item 0" over "Item 3" ...
TK421's user avatar
  • 865
1 vote
1 answer
205 views

How to make a grid drag and drop like in google keep

I am trying to accomplish a drag and drop section like in google keep, in vuejs, where every div can be in a different height(all in the same width) example Searched google, used a library that didn't ...
Ben Isayev's user avatar
0 votes
1 answer
624 views

Drag and drop rotated images javascript

so i have a code that allows me to drag and drop an img tag. The drag and drop works fine but when i added a rotation function, the drag and drop started acting weird (the coordinates changed and when ...
Nour Hariz's user avatar
0 votes
1 answer
696 views

angular material drag&drop calls callback after css transition end

I have implemented list of elements which can be drag and dropped via angular material drag and drop feature like in tutorial https://material.angular.io/cdk/drag-drop/overview I've implemented ...
NextLevel's user avatar
0 votes
1 answer
112 views

how to drop an element into a div and retrieve the coordinates relative to the div element?

i have a div element with id="drag", if a div element with id='drag' is dragged and dropped onto a div element with id="drop", it will display the coordinates value relative to the ...
Gung Andre's user avatar
0 votes
1 answer
94 views

Make the cursor look like HTML5 drag and drop cursor

Drag and drop in HTML5 uses the following cursor shape when an element is dragged over the drop zone: Would it be possible to set cursor to above shape without using drag and drop?
cyrus-d's user avatar
  • 815
1 vote
1 answer
335 views

Can't drag element, by clicking on the slotted text (Vanilla JS)

I created a draggable Web-Component with a slot: const DragItemTemplate = document.createElement("template"); DragItemTemplate.innerHTML = `<style>` + `div{` + `background: gray;`...
Ich's user avatar
  • 85
1 vote
0 answers
51 views

Why draggable object jump on the random position jQuery?

I work with draggable and dropablle object, and I have issues with jumping objects on random place. I have few dropablle areas, and dragable objects, for this I use script: $('.draggable-box')....
Andrew's user avatar
  • 622
0 votes
1 answer
192 views

Don't open image in browser when dropped into a window

When I drag an image and drop it into an open browser window, the browser will (provided I didn't drop the image into an input field) open this image in the browser. The address bar shows something ...
David's user avatar
  • 3,118

15 30 50 per page
1 2
3
4 5
34