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
86
votes
9 answers

How to use UIPanGestureRecognizer to move object? iPhone/iPad

There are several examples of the UIPanGestureRecognizer class. For example I have read this and I am still not able to use it... On the nib file that I am working on I have a UIView (white rectangle on image) that I wish to drag with that…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
72
votes
7 answers

How to mimic two-finger scroll/drag gesture on ios simulator?

I have a scroll page that I specified two fingers minimum. It works on my device, but don't know how to mimic this gesture on Simulator. I can mimic one-finger scroll without problem. I've tried option/ctrl/shift etc, but couldn't get it work. Maybe…
Tony Xu
  • 3,031
  • 4
  • 32
  • 43
62
votes
7 answers

Android Google Maps: disable dragging in MapFragment

Can I disable drag functionality when the user tries to drag the map with his fingers without disturbing the Zoom in and Zoom out? Any one please suggest an idea of doing this! Thanks for your Precious help!!
Mahe
  • 2,707
  • 13
  • 50
  • 69
60
votes
8 answers

Chrome sets cursor to text while dragging, why?

My application has many drag and drop features. While dragging I want the cursor to change to some grab cursor. Internet Explorer and Firefox work fine for this, but Chrome always changes the cursor to the text cursor.
user307635
  • 765
  • 1
  • 6
  • 11
44
votes
4 answers

Google Map Api v3 drag event on map

I am using google map v3 api. I need to detect the drag event on the map. Be it the drag on the map to move to a nearby geographical location or a drag on the marker. I need some javascript function to run when either of the events occur.
Maxim Dsouza
  • 1,507
  • 3
  • 19
  • 32
33
votes
4 answers

How to get notified of UITableViewCell move start and end?

I have a UITableView in my iOS app that gets refreshed periodically. The user is also able to move the tableview rows at all times (the tableview is always in editing mode). I want to stop the refresh timer when the user starts dragging a row and…
Cornelius
  • 4,214
  • 3
  • 36
  • 55
33
votes
4 answers

How to make a pattern "fixed" in Raphael.js / IE?

I'm creating a small tool to illustrate the benefits of polarizing lenses. Basically a user will drag the lenses (a Raphael.js path) over a dazzling scene (the CSS background of the container DIV) and "see through" the lenses. Here is the js…
Paolo Stefan
  • 10,112
  • 5
  • 45
  • 64
33
votes
2 answers

Why is clientX reset to 0 on last drag-event and how to solve it?

I'm trying to drag elements along a line. They should push each other, not cross over or under. To avoid having a shady element float around on drag, I drag a sub-div which then affects the position of the outer one. Works fine except when you…
primavera133
  • 1,284
  • 1
  • 15
  • 24
31
votes
5 answers

Cant drag and move a WPF Form

I design a WPF form with Window Style=None. So I Cannot see the drag bar in the form. How can I move the Form with WindowStyle=None Property?
Jawahar BABU
  • 1,055
  • 2
  • 9
  • 7
30
votes
2 answers

jquery html 5 dragstart .on('dragstart',function(e){}) e.dataTransfer.setData() doesn't work

chrome throw err: Cannot call method 'setData' of undefined, I find the e is not equal to window.event(it havn't propert dataTransfer);both has very big different I find both almost equal in the click event. I used…
zsytssk
  • 702
  • 1
  • 6
  • 14
26
votes
4 answers

Click and drag selection box in WPF

Is it possible to implement mouse click and drag selection box in WPF. Should it be done through simply drawing a rectangle, calculating coordinates of its points and evaluating position of other objects inside this box? Or are there some other…
rem
  • 16,745
  • 37
  • 112
  • 180
22
votes
8 answers

How do I detect if a GestureDetector is hovered in Flutter?

So I have a widget GestureDetector in Flutter and I want it to do something on "hover", like this (dragged in any direction): Is it possible to do it with GestureDetector? Any help appreciated.
Yanb
  • 638
  • 1
  • 3
  • 20
22
votes
1 answer

Panning, exact definition

What is the difference between scrolling and panning? Is panning identified as the action of dragging the image/background, while scrolling is only when you use scroll bars? And, what is the difference between dragging and panning? When I drag the…
cdarwin
  • 4,141
  • 9
  • 42
  • 66
21
votes
2 answers

jQuery drag and draw

I'm trying to build a jQuery plugin that allows you to drag and draw a rectangle (or a div with a border) but I'm not sure how to do it. I don't know of any that currently have this ability so I don't know where to look for an example of how to do…
Andrew
  • 227,796
  • 193
  • 515
  • 708
21
votes
6 answers

android drag view smooth

I have to drag some views on screen. I am modifying their position by changing left and top of their layout parameters from motion event on ACTION_MOVE from touch listener. Is there a way to "drag" items more smooth? Because tis kind of "dragging"…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
1
2 3
99 100