Questions tagged [drag]

In computer graphical user interfaces, drag is the first phase of a drag-and-drop operation. This involves selecting a virtual object by "grabbing" it and dragging it with the mouse down to a different location or onto another virtual object. An instance of some object relating to what was grabbed is usually brought with the drag operation.

In computer graphical user interfaces, drag is the first phase of a drag-and-drop operation. This involves selecting a virtual object by "grabbing" it and dragging it with the mouse down to a different location or onto another virtual object. An instance of some object relating to what was grabbed is usually brought with the drag operation.

2133 questions
0
votes
0 answers

How to have an OnClick event after enabling mobility of borderless form

I have a borderless form that I want to be movable. I have used @Joey's solution In order to do that. but after I did it I have noticed that my Click event is no longer activated when my form Form1 is clicked. How can I have both the functionality…
user12190339
0
votes
2 answers

Drag, scale and rotate multiple UIImageviews

I've got it so far that I can move, scale and rotate all the objects, but the multiple objects all move together. I want them to move seperate. I guess I have to change the objectatIndex to 1, but it just crashes. I've used the following code: -…
Tim
  • 13
  • 1
  • 9
0
votes
1 answer

Moving objects independently of each other, with the ability to move at the same time in Unity 2D

I have two objects. The point is that I need to move the object up and down (hold and drag), and at the same time I need to move the other object up and down (hold and drag) independently. Something like this: Example After searching the Internet, I…
0
votes
1 answer

Dragable and sortable outside div

guess we have a div grid for inventory 128x512px. i want all (item 64x64px) divs outside snapable to the grid by dragging tehm. inside the inventory the divs must be sortable. i want no lists. any suggestions by doing it the easiest way with jquery…
Shorty
  • 15
  • 6
0
votes
1 answer

Drag by touch android UI

I have problem with UI image on canvas for android in unity, the object does not follow the exact touch coordinates it moves slightly, but not enough to actually be functional I tried everything, including creating a new project that apparently…
0
votes
1 answer

First drag does not work for vue-smooth-dnd vuejs

Below code contains a section for the drag and drop. div drag-block which needs to get drag, but it does not work on the first drag it does not drop. It starts to drop from we drag for the second…
Rahul Gupta
  • 69
  • 2
  • 14
0
votes
1 answer

Drag to Target with JavaScript

I have a list of senators with names and parties, such that Chuck Schumer Democrat false Dick…
Andrew Steier
  • 133
  • 1
  • 10
0
votes
0 answers

SAP UI5 JQuery drag and drop is not working

I have created drag and drop functionality in sap ui5 app as mentioned link. 1) when working with single view & controller, drag and drop functionality is working fine. 2) when working with multiple view and controller, if my drag & drop view is…
vikram
  • 9
  • 1
0
votes
2 answers

How to prevent image disappear when another image is dropped on it

I want to create page where I can move images between divs. I can move images over other divs and back. The problem is that if I move one image over another, the "another" image disappear. I am looking for some way to prevent this.
Robert Veselý
  • 219
  • 3
  • 11
0
votes
1 answer

Drag to rotate without regardless of camera position

I am using drag to rotate objects in 2D and my camera is moving constantly which affects the rotation of the objects. I want to rotation to be independent of camera position. What is the simplest way of doing that? It does rotate my circle as the…
0
votes
1 answer

Understand different drag and drop parameters?

I am looking at https://www.w3schools.com/html/html5_draganddrop.asp and I'm trying to understand why ondragstart = "drag(event)" works but not "drag(ev)"? `function drag(ev) { ev.dataTransfer.setData("text", ev.target.id); } `
burnsie
  • 65
  • 1
  • 7
0
votes
1 answer

Dragging more than one item in Adobe Flash CS3 Actionscript

I've been trying to program a game in my class on Digital Media, and have run up to a huge roadblock concerning draggable items. I first managed to make one item that could be dragged with the mouse using this code (the movie clip is called…
Jascha
  • 1
  • 1
0
votes
1 answer

Ignore up and down mouse down events

I've written my first npm library called flix slider (https://www.npmjs.com/package/flix-slider) which is kinda based on the Netflix style slider. The designer wanted the slider to behave in a certain way and I couldn't find anything that did what I…
eyebonk
  • 67
  • 10
0
votes
0 answers

should d3 drag (v5) update object datum during dragging?

I'm dragging a single rectangle ... it drags correctly the first time, but the second time it jumps back to its starting point at the start of the drag. I notice many drag examples on the net drag circles, where there is a fortunate correspondance…
0
votes
1 answer

angular cdk drag: Restore the default click and drag behavior for text selection in an html input inside a cdkDrag container

My template:
Hello World
Now, when an user clicks on the input 'myInput' and tries to select text, the mouse movement gets captured for dragging the cdkDrag container and text cannot be…
Victor Mukherjee
  • 10,487
  • 16
  • 54
  • 97