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
10
votes
4 answers

Dragging UIView under finger

I want to tap on a UIView and drag and have that view follow my finger, simple enough. But the easiest way of doing this is by setting the objects center to where the tap happened (Which is not what I want), I want it to move as if you grabbed the…
Parad0x13
  • 2,007
  • 3
  • 23
  • 38
10
votes
3 answers

How to catch that map panning and zoom are really finished?

I am trying to write an application that will dynamically load data to map while user pans or zooms it. I need to track when the map is finished to change its view state (stops panning or zooming) and then load a new portion of data for creating…
Dmitriy Rybakov
  • 390
  • 2
  • 12
10
votes
2 answers

(iPhone) how to implement draggable pins using OS 4.0 MapKit?

Can anyone provide any sample code/instructions for implementing draggable pins in OS 4.0 using the MapKit framework?
WoodenKitty
  • 6,521
  • 8
  • 53
  • 73
10
votes
2 answers

Fixed marker on google maps for ios

I am using google maps SDK for ios. I want to make a marker fixed in the center of the screen, so when user drags the map, the marker does not move and stays in the center. I am also trying to read the coordinate of the center after the drag. Any…
Yini
  • 101
  • 1
  • 3
10
votes
1 answer

d3js dragging circle should rearrange other circles in main boundary circle

I have bubble chart based on this tutorial. I have enabled dragging of bubbles with following code. This makes individual circles draggable, but while dragging a circle other circles don't get auto adjusted. I am using pack circle algorithm, please…
Dhanesh Mane
  • 147
  • 11
10
votes
2 answers

Box2d: mousejoint without inertial delay

I'm using mousejoint to drag bodies in box2d, but it causes inertial delay. Does it exist any way to drag a body instantaneously?
Ricibald
  • 9,369
  • 7
  • 47
  • 62
10
votes
2 answers

How to set the Origin (drag.origin) for drag behavior in d3 JavaScript library

I am trying to implement drag behavior for group consisting from HTML-text and background-rectangle using the d3 framework. I was able to get it working, although when not setting the drag.origin I can see noticeable jump due to the…
karlitos
  • 1,604
  • 3
  • 27
  • 59
10
votes
2 answers

Drag down formula and change COLUMN references instead of ROWS

I have this formula in Excel, in row E5: =SUM(Banco!H$5;Banco!H$6;Banco!H$8;Banco!H$9;Banco!H$10;Banco!H$11) I need it to change the COLUMN references instead of ROWS when I drag it down (basically behave like I was dragging it across)... For…
Marcelo
  • 351
  • 1
  • 5
  • 18
10
votes
1 answer

Java - Scroll image by mouse dragging

I would like to make a join.me like in Java. I've made the screen capture part but now I want to scroll in the image by dragging the mouse. Here is a screen of what i've made: First of all, I want to replace the scroll bars by mouse dragging the…
Manitoba
  • 8,522
  • 11
  • 60
  • 122
9
votes
3 answers

Show overlay on 'dragenter' when dragging a file from desktop to the browser

i'm trying to achieve the same effect as on imgur.com (drag a file from the desktop to imgur.com and you'll see a cool overlay). already have a working solution thanks to this post: Event propagation, overlay and drag-and-drop events BUT: i find the…
Philip Paetz
  • 607
  • 5
  • 9
9
votes
3 answers

Android: How to drag(move) PopupWindow?

I want to be able to move PopupWindow on touch dragging. I don't want UI to update on the release of the touch. I want PopupWindow to follow my touch. This is something what I am doing: mView = mLayoutInflater.inflate(R.layout.popup, …
jclova
  • 5,466
  • 16
  • 52
  • 78
9
votes
3 answers

Google Line Chart: drag to adjust value

I've recently dropped use of Graphael and and extensions package Ico. I think it's still a great library, it just needs better documentation and a proper API before it can be widely adopted. I've converted the areas with charting to use Google…
9
votes
1 answer

Detecting keydown/up events during HTML5 native drag

I've an element that can be dragged using native HTML5. It has dragstart, drag, and dragend event listeners assigned to it. In addition, I also have keydown and keyup event listeners assigned to document.body element. When dragging the draggable…
woran
  • 1,317
  • 2
  • 16
  • 22
9
votes
4 answers

How can I select Widgets by dragging over them but also clicking them individually in flutter?

I want to create an Interface in which it is possible to drag your finger over several Areas. This changes the state of the areas to a selected state (See images). What is the best way to approach this? Start Position: Start Dragging: Select First…
Philipp Redeker
  • 3,848
  • 4
  • 26
  • 34
9
votes
2 answers

'react-dnd' does not contain an export named 'DragDropContext'

I tried to use react dnd in my react web application. I create a js file call withDnDContext.js. When I compile it, I received an error 'react-dnd' does not contain an export named 'DragDropContext'. My react-dnd version is latest one 9.3.2 This is…
phoon
  • 369
  • 1
  • 6
  • 21