All Questions
Tagged with drag-and-drop css
513
questions
-2
votes
0
answers
25
views
svelte + tailwind drag drop example css collision [closed]
I'm trying to follow the example at https://svelte.dev/repl/e62f83d69cea4fda9e8a897f50b5a67c?version=4.2.18
<script>
// https://svelte.dev/repl/915db3b3ed704fddb7ddfb64bcbc2624?version=3.31....
1
vote
0
answers
20
views
Angular 3 levels of drag and drop
I'm working on an Angular application where I need to implement drag and drop functionality for a menu system with the following structure:
Header menu can have both Group menu and Menu items as ...
1
vote
1
answer
42
views
cdkDragPlaceholder not working for horizontal Drag and Drop
I'm working on a website which involves horizontal drag and drop of elements.
I'm able to do horizontal drag and drop. But i need the user to identify where he actually dropping the elements. For that ...
-1
votes
1
answer
24
views
Assign different overflow behaviour for the parent depending on the child
I am trying to figure out how to make overflow hidden for for the parent child for one child but not for the other. I am making an inventory for fivem so i want it possible to scroll through the slots ...
1
vote
0
answers
31
views
Parent elements overflow act differently for different child elements?
I have problem with letting one child override parents overflow but not the other
#second-row {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 0px;
height: 503px;
}
.inv {
...
1
vote
0
answers
22
views
Adjust ghost image for drag and drop feature based on React State
I have a drag-and-drop application that reorders an array of cards. When start dragging, I'm removing the dragged item from the array and then putting back on drop based on the new position. ...
0
votes
1
answer
63
views
Maintain row position during drag n drop when other rows collapsed
I have a draggable/sortable list of accordion items (or expandable rows) and I'm collapsing all of them during drag n drop to make it easier for the user to see what they're doing.
If I do this only ...
3
votes
3
answers
102
views
How can I add drag & drop functionality to my file input HTML tag which I have customized as an image?
I am currently designing a form using HTML, CSS, and JavaScript which includes an input type=file. I customized the form, so that the input now uses an image which can be clicked to browse and select ...
0
votes
0
answers
20
views
Can't change not-allowed cursor when dragging on div borders
Whenever I'm dragging a div over another one, I see the not-allowed cursor appearing and flashing when passing over the borders of another div, even if it has no borders specified.
The expected ...
0
votes
1
answer
43
views
Drag items disappear/wont move when trying to move them
I'm trying to make a 3x3 grid with the grid items being each a part of 1 image. These items I want to be able to drag and drop them inside another 3x3 grid.(In any order I want).
I've encountered a ...
0
votes
1
answer
118
views
css style cursor during drag & drop
When using the HTML Drap and Drop API, how can I change what the cursor looks like?
It seems to be using the default no-drop while not over a dropable zone as well as some other ones (that I can't ...
1
vote
0
answers
83
views
Separator after x elements in a react-beautiful-dnd list
I'm trying to have a separator between my 3rd and 4th element in a react-beautiful-dnd <Droppable/>.
It's pretty easy to have the separator before drag and after drag, the problem is when it ...
1
vote
0
answers
24
views
Does e.target work differently on mobile?
I have noticed that when I was debugging with the devtools and set it to the screen to be mobile, e.target was detecting the parent divs(especially the ones' display is flex) instead of the children ...
0
votes
1
answer
31
views
need an function swap for swaping elements
function swap(ev, targetId) {
//Working on a school project and got stuck, was trying to swap .gif like drag and drop
const currentId = ev.dataTransfer.getData("text");
const current = document....
0
votes
1
answer
149
views
Cannot drag boxes in calendar weekly column
UPDATED CODE BELOW:
After doing a bit of workaround I can drag and drop boxes now however it drops at whatever timeslot is empty first rather dropping to actual timeslot for example, if I drop box to ...