Questions tagged [drag-and-drop]

It allows you to "grab" an object using the mouse and drag it to a different location. Drag and Drop can be done on browser-based application (web) or on native GUI applications like android or desktop

Filter by
Sorted by
Tagged with
374votes
38answers
104kviews

HTML5 dragleave fired when hovering a child element

The problem I'm having is that the dragleave event of an element is fired when hovering a child element of that element. Also, dragenter is not fired when hovering back the parent element again. I ...
user avatar
  • 146k
264votes
10answers
184kviews

How do I drag and drop files into an application?

I've seen this done in Borland's Turbo C++ environment, but I'm not sure how to go about it for a C# application I'm working on. Are there best practices or gotchas to look out for?
user avatar
220votes
10answers
86kviews

Prevent browser from loading a drag-and-dropped file

I'm adding an html5 drag and drop uploader to my page. When a file is dropped into the upload area, everything works great. However, if I accidentally drop the file outside of the upload area, the ...
user avatar
  • 2,203
212votes
14answers
268kviews

drag drop files into standard html file input

These days we can drag & drop files into a special container and upload them with XHR 2. Many at a time. With live progress bars etc. Very cool stuff. Example here. But sometimes we don't want ...
user avatar
  • 49.3k
185votes
22answers
70kviews

'dragleave' of parent element fires when dragging over children elements

Overview I have the following HTML structure and I've attached the dragenter and dragleave events to the <div id="dropzone"> element. <div id="dropzone"> <div id="dropzone-content"...
user avatar
  • 43.7k
174votes
7answers
156kviews

Is there a good jQuery Drag-and-drop file upload plugin? [closed]

Is there a nice tidy jQuery plugin that allows including a single JS script then using a simple snippet to enable a form? Something like this: $j('#MyForm').enableDragDropUploads('.upload-area') ...
user avatar
151votes
17answers
218kviews

How do I remove a file from the FileList

I'm building a drag-and-drop-to-upload web application using HTML5, and I'm dropping the files onto a div and of course fetching the dataTransfer object, which gives me the FileList. Now I want to ...
user avatar
  • 2,388
127votes
10answers
104kviews

Make WPF window draggable, no matter what element is clicked

My question is 2 fold, and I am hoping there are easier solutions to both provided by WPF rather than the standard solutions from WinForms (which Christophe Geers provided, before I've made this ...
user avatar
  • 10.2k
125votes
3answers
85kviews

Drag and drop files into WPF

I need to drop an image file into my WPF application. I currently have a event firing when I drop the files in, but I don't know how what to do next. How do I get the Image? Is the sender object the ...
user avatar
111votes
4answers
60kviews

Drop event not firing in chrome

It seems the drop event is not triggering when I would expect. I assume that the drop event fires when an element that is being dragged is releases above the target element, but this doesn't seem to ...
user avatar
  • 27.6k
93votes
11answers
88kviews

Does HTML5 allow drag-drop upload of folders or a folder tree?

I haven't seen any examples that do this. Is this not allowed in the API spec? I am searching for an easy drag-drop solution for uploading an entire folder tree of photos.
user avatar
  • 3,911
93votes
8answers
74kviews

Basic Drag and Drop in iOS

I want to have a view in which there are vehicles driving around that the user can also drag and drop. What do you think is the best large-scale strategy for doing this? Is it best to get touch events ...
user avatar
  • 6,910
87votes
16answers
78kviews

Preventing click event with jQuery drag and drop

I have elements on the page which are draggable with jQuery. Do these elements have click event which navigates to another page (ordinary links for example). What is the best way to prevent click from ...
user avatar
78votes
6answers
80kviews

jQuery Draggable and overflow issue [closed]

I am having an undesired effect when I drag a div from a container div which is set as overflow: scroll. I have found an example of someone else where they have had the issue but I have been unable ...
user avatar
  • 2,835
76votes
3answers
10kviews

Disable click and drag cut and paste in IntelliJ Idea IDE

In my IntelliJ Idea 13.1.2 IDE I keep running into situations where I'm selecting on a click and drag via my laptop touch pad. I keep accidentally clicking and dragging text and cutting lines. I've ...
user avatar
  • 7,415

15 30 50 per page
1
2 3 4 5
854