All Questions
Tagged with drag-and-drop css
510
questions
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 ...
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 ...
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 ...
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, ...
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....
-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
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" ...
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 ...
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 ...
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 ...
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 ...
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?
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;`...
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')....
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 ...