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
1 answer

parameter order for drag( ) in Raphael.js

The drag method in Raphael has three parameters : onmove, onstart , onend. Most examples in books show examples in that order , like this drag(onmove, instart, onend) and then declare them in any order. Some examples show the parameters in a…
Joe
  • 55
  • 1
  • 5
0
votes
1 answer

Can not drag div, no translucent image of div while dragging in firefox

When dragging the div below you see a…
user7006253
0
votes
2 answers

flash as3 The supplied DisplayObject must be a child of the caller when dragging a clip

all I'm trying to do is set up dragging for my movie clips, but I keep getting this error: The supplied DisplayObject must be a child of the caller. This is my code: projectThumb.addEventListener( MouseEvent.MOUSE_DOWN, onThumbPress…
mheavers
  • 29,530
  • 58
  • 194
  • 315
0
votes
0 answers

Dragging behavior along with the responsiveness in svg using d3.js

How could I implement the dragging behavior along with the responsiveness in svg using d3.js? By the responsiveness I mean that if resized to any screen resolution the elements I drew in svg element will preserve their aspect ratio. By dragging…
manymanymore
  • 2,251
  • 3
  • 26
  • 48
0
votes
3 answers

AS3, scroll content by dragging content. Like on a phone. no scroll bar. flash

I am trying to figure out how to scroll content in a action script project by dragging the content. This would be the same functionality as seen on a phone using touch gestures to move content. I would like to do this with the mouse. I do not want a…
Cole Peterson
  • 184
  • 2
  • 2
  • 12
0
votes
1 answer

Dragging wrong riot component

I'm creating a draggable riot js based SVG element.
Amit Kumar Gupta
  • 7,193
  • 12
  • 64
  • 90
0
votes
1 answer

JFrame dragging from custom button not smooth

I am using practically the same method for moving the JFrame as Java - Custom shaped draggable JFrame I have a class that extends JPanel. In the said class, I have the previous x and y set to variables like so: private int pressX, pressY Then, in…
Gigi Bayte 2
  • 838
  • 1
  • 8
  • 20
0
votes
0 answers

Drag, drop and swapping elements between tables

Imagine i have this JsFiddle ç
Tirant II
  • 1
  • 2
0
votes
1 answer

Move Kivy window by label drag - Kivy, Python

I want to create custom window header of a Kivy window. I am very new to kivy so please provide some explanation how the events work. I need to simply move the window by "moving" the label. First of all I want to know, why this does call any…
Jakub Bláha
  • 1,491
  • 5
  • 22
  • 43
0
votes
1 answer

How to detect the div where we in using javascript drag and drop

this is my javascript code ` function allowDrop(ev) { ev.preventDefault(); } function drag(ev) { ev.dataTransfer.setData("Text",ev.target.id); ev.dataTransfer.setData("class",ev.target.classList); } …
0
votes
1 answer

QML: Drag items get clipped when dragged outside of a ScrollView

I have a ScrollView which contains several draggable rectangles. When I drag an item outside of that ScrollView, I want it to remain visible, but it gets clipped at the edge of the ScrollView. I tried playing around with the z values, but it has…
Don Joe
  • 274
  • 4
  • 13
0
votes
0 answers

Zoom and Drag Function Does Not Apply to Canvas (D3js)

I have been struggling with this quite sometimes, really need help with this. I wanna to create a heatmap with it content and axis are all scalable and zoom-able accordingly.Notice I have converted the svg content to canvas. I suppose I have already…
cypatrick
  • 151
  • 1
  • 11
0
votes
0 answers

Why event target isnt call a single element

I use event.target but if when i do bold for selected element with toggleClass. When i was click other elements they are all change. But my mousedown event is didnt just interest with single target ? function tik(xs){ $.each(['bold',…
user7759590
0
votes
1 answer

Drag window from a grid

I have created a custom window set to windowStyle="none", (no title or maximize - minimize buttons) and i am trying to implement a DragMove operation when the user clicks and drags on a grid. (this is wired up by calling DragMove on a…
Nikos Tsokos
  • 3,226
  • 2
  • 34
  • 41
0
votes
0 answers

d3.js select for drag

I have a problem with my real-time chart. In this chart there is many rectangles with means chart. I want to this rectangles have a drag and drop. Drag function: function dragged(d) { var xd = d3.event.x; var yd = d3.event.y; …
1 2 3
99
100
10