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

13309 questions
4
votes
0 answers

Drag and drop generated content from chrome 62 to desktop

I'm am working on an interactive content editing system. In the system, you should be able to freely drag and drop content between the website and your desktop. I use the html5 drag and drop API. Dragging files with a persistent url onto desktop…
Stefan Ramson
  • 531
  • 1
  • 6
  • 18
4
votes
1 answer

Why does QAbstractItemView removes elements after a MoveAction drag and drop?

I noticed in the source code of QAbstractItemView that the method void startDrag(Qt::DropActions supportedActions) calls some clearOrRemove() private after a drag whose type is MoveAction(), which removes selected items. Point is, when the drop…
Lithy
  • 817
  • 12
  • 23
4
votes
1 answer

How to distinguish drop from drag abort

When an HTML5 drag operation ends over another window, a Drop event fires in the target window and a DragEnd event fires on the dragged element in the source window. For both copy and move, the drop target will perform a copy operation using the…
Peter Wone
  • 17,965
  • 12
  • 82
  • 134
4
votes
1 answer

Drop on Dock Icon

I was looking through the docs to find how to allow dropping on the dock icon. From what I've seen, it is recommended that you use LSItemContentTypes, as CFBundleTypeOSTypes is deprecated. However, I can not get LSItemContentTypes to work, only…
Nick Paulson
  • 111
  • 1
  • 5
4
votes
1 answer

React/Dnd: Make a component draggable and droppable at the same time

There are multiple elements, which I want to get draggable and droppable at the same time - using react dnd. That means I need to drag one of the elements and drop it over another element. First I defined the dragSource for MyComponent. That works…
user3142695
  • 15,844
  • 47
  • 176
  • 332
4
votes
1 answer

Qt Drag&Drop from QTableWidget to folder

I have custom QTableWidget, how i can make Drag&Drop from table indexes to folder? I have have QList collection with archive files. This code works perfect for drop to application void ArchiveQTableWidget::keyPressEvent(QKeyEvent *event) { if…
Kn1fe
  • 41
  • 3
4
votes
3 answers

How to disable iOS 11 dragging within the whole app?

For security reasons I want to disable the new iOS 11 drag & drop feature within my whole app. More specifically the drag part. In iOS 11 it's happening by default for text in all places where text can be selected - popups, textviews, webviews, etc.
The_Falcon
  • 287
  • 1
  • 2
  • 10
4
votes
3 answers

How to drag and drop from one HTML5 canvas to another

I'm trying to figure out how to drag and drop an image from one canvas to another canvas. Assuming the canvases are next to each other, would it be possible to seamlessly drag something across the border? If not, is it a better idea to drag a div…
user563313
  • 41
  • 1
  • 3
4
votes
1 answer

Threepenny-GUI: Drag'n'Drop - Access DragData

I am currently struggling with getting access to the DragData of the dragged element when the on UI.drop is called. I have something like this: tile <- UI.new # set UI.draggable True # set UI.dragData (show player) field <- UI.new # set…
m0.o
  • 115
  • 1
  • 10
4
votes
1 answer

How to implement drag-and-drop between lists in android?

I'm trying to make it so that the user can drag a textview from one listview and then drop it into another, and I'm finding it to be very difficult. The biggest problem I have found so far is that onTouchEvents seem to only be heard in the view that…
phailhaus
  • 51
  • 2
4
votes
1 answer

Surface Pen issues when dragging and dropping in Chrome and Edge

I'm testing a client's Surface 4 device. As the title suggests, in-page dragging and dropping isn't working when using touch (finger dragging) or the Surface Pen. After some testing it seems this is an issue in both Chrome and Edge, but not in…
4
votes
0 answers

event.dataTransfer.setDragImage in Angular2

I'm implementing the drag&drop feature in the Angular2 app. When I'm trying to write this code public onKitItemDragStart(itemID: number, index: number, event: DragEvent): void { let img: HTMLImageElement = document.createElement('img'); img.src…
WeekendMan
  • 561
  • 1
  • 10
  • 25
4
votes
1 answer

Angular Drag and Drop pass in Parameter within jqyoui-draggable

I am using angular drag and drop, but i am having trouble passing a parameter in with onStart, onDrag, onDrop or onStop to the controller. I have a number of different variations like below but nothing seems to work: jqyoui-draggable="{onStart:…
BrianM
  • 115
  • 3
  • 11
4
votes
1 answer

WPF Drag and Drop - Get original source info from DragEventArgs

I am trying write Drag and Drop functionality using MVVM which will allow me to drag PersonModel objects from one ListView to another. This is almost working but I need to be able to get the ItemsSource of the source ListView from the DragEventArgs…
Jason Quinn
  • 2,443
  • 3
  • 28
  • 36
4
votes
1 answer

How to drag item out of horizontal scroll container?

I have a container that has overflow:auto so that it scroll's horizontally. I want to be able to drag an item out of that container to an above div. For this I have either been changing the container to overflow visible, or the items to have…
Chris
  • 391
  • 4
  • 14
1 2 3
99
100