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
2 answers

QML drag keys aren't matching properly

(QtQuick 2.12 on Windows) I'm trying to drag something invisible, and take advantage of the keys property in DropArea and the Drag.keys property in the Item I'm dragging. The DropArea generates events if it has an empty keys, but if I put anything…
Paul DeRocco
  • 403
  • 3
  • 15
0
votes
1 answer

fabricjs limiting object drag

Referring to the code below, I can drag the red line back and forth within the canvas box and have it stop at the left limit. But the line doesn't stop at the right limit - it disappears beyond the box and reappears if I drag left. I have looked at…
Byrd
  • 27
  • 3
0
votes
1 answer

MysqlDataAdapter.Update not throwing exception

In my application I have drag and drop functionality for a TreeView and for a DataGridView. It works great and I have no issues with the code. I use Visual Basic - Visual Studio 2017 Community on Windows 10 Home Single Language 64-bit. After…
0
votes
0 answers

Drag the center of an item

I have an Item that is a little large. I want to resize it when dragging and ensure that the center is always dragged. The following is a trial (In order for simplicity, I don't set the center of the Item to the mouse position here, neither do I…
cqdjyy01234
  • 1,180
  • 10
  • 20
0
votes
1 answer

html drag and drop different items

I have a drag and drop html5 function which works fine : function allowDrop(ev) { ev.preventDefault(); } function drag(ev) { ev.dataTransfer.setData("text", ev.target.id); } function drop(ev) { ev.preventDefault(); var data =…
fa ze
  • 15
  • 4
0
votes
2 answers

Click and Dragging through frames AS3

I have a frame-by-frame animation. I want to be able to click and drag on the stage back and forth and traverse through the animation. I.e. I want to click and drag from left to right to make the animation go forwards and right to left to make the…
Dan Hanly
  • 7,829
  • 13
  • 73
  • 134
0
votes
2 answers

Drag ImageView Or Bitmap Upon Touch

I currently have something working where I can drag a box horizontally on the screen (what I want it to do). However, it works when you click ANYWHERE on the screen, and I want it to work only when the box has been clicked. I have tried implementing…
Hani Honey
  • 2,101
  • 11
  • 48
  • 76
0
votes
1 answer

With React Native's MapView, how can I determine when I've reached my final drag destination?

I have a Map with a pin that sits in the centre of the map. When I drag the map, the coordinates update, but the problem is that this triggers at every step of the moving process. Instead, I'd like it to detect when the map movement has stopped and…
James Stewart
  • 869
  • 12
  • 33
0
votes
1 answer

c# Dragging PictureBox inside Panel

I have a PictureBox1 draggable with this code: private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { x = e.X; y = e.Y; } } private void…
0
votes
1 answer

How can I drag the iframe with header along with minimize and maximize options

I have an iframe with header "chat" How can I drag that iframe with header along with minimize and maximize options or how can I drag the whole iframe instead of border.
Mounika
  • 35
  • 1
  • 8
0
votes
1 answer

adding drag events using jQuery

I am using jQuery to add dragStart events to a button. Here is my html: $('.btn-photo').on('dragstart', function (event) {});
Chris Hansen
  • 7,813
  • 15
  • 81
  • 165
0
votes
1 answer

Dragging element with d3.mouse(this) causes flickering of element

I have an absolutely positioned leading line within a relatively positioned div. I need to move the leading line horizonatally as the mouse moves using d3. Since d3.event requires the elements to be positioned within g elements, I am trying to use…
Soham Bhaumik
  • 211
  • 2
  • 15
0
votes
2 answers

jquery dialog box appended to d3 js tree on drag and drop

I have a tree that is created in d3 and each node can be dragged and dropped in any point. I want my code to pop up a dialog box with several choices when I drop a node on specific location. I do not have any idea how it can be implemented in d3.…
nazaninj72
  • 47
  • 8
0
votes
1 answer

c# panel to panel button dragdrop only 1 time working

public Form1() { InitializeComponent(); panel1.AllowDrop = true; panel2.AllowDrop = true; panel1.DragEnter += panel_DragEnter; panel2.DragEnter += panel_DragEnter; panel1.DragDrop += panel_DragDrop; panel2.DragDrop +=…
0
votes
2 answers

Disable full window drag

when I use AWTUtilities.setWindowOpaque(this, false); to make my JFrames' background transparent, you can change the location of my JFrame by dragging it anywhere in the window. My problem is, that I have Objects I want to use for drag and drop on…
esanits
  • 197
  • 1
  • 13