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

owl carousel dragging changes the center item but it is not affecting javascript querySelector (".center")

hello m I am trying to apply some javascript function to the center element in my owl carousel, the function is working fine on the desktop website because the user can change the center item by clicking on another, but on the phone the user does…
0
votes
0 answers

How to use onTouch() (to drag, zoom, rotate) method after ScaleAnimation

I'm trying to make a ScaleAnimation for zooming background and objects (which are located on it) and next change size, position or rotate it using onTouch() conditions. Example: https://i.stack.imgur.com/UbRxB.jpg So when I want to make a dragging…
willford
  • 39
  • 2
  • 9
0
votes
2 answers

Drag a view on touch and back to origin position on touch release

I want to touch drag a view all around the screen and on touch release I want to bring the view back to its origin position. Here's my code: private float xCoOrdinate, yCoOrdinate; private float top2AxOriginXCoordinate,…
Drunken Daddy
  • 7,326
  • 14
  • 70
  • 104
0
votes
1 answer

paper.Tool is not working on Multiple canvas

I have two canvas the first one is working good, but when I initialize the second one the paper.Tool does not work properly, sometimes the event onMouseMove works others not. var dataLoad; var mypapers = [] $(document).ready(function () { …
user3442776
  • 162
  • 2
  • 4
  • 13
0
votes
2 answers

Unity3D - C# 360 Orbital Camera Controller (Gimbal Lock Issue)

I have a stationary cube in my scene that I'm orbiting a camera around. I have my MainCamera nested under a GameObject that I'm calling 'OrbitalCamera'. I setup the script so that a click (or tap) and drag will rotate the camera around the object…
brandoncluff
  • 303
  • 1
  • 5
  • 19
0
votes
1 answer

I am looking for a way to rotate a sprite in direction of drag

How can I rotate a sprite in the direction of drag while being draged? I dont want the sprite rotate towards the input pointer (toch,mouse) if its not pixel perfect clicked. Also I would like to still be able to use physics on the sprite using the…
KonMos
  • 1
  • 2
0
votes
0 answers

How to Drag custom filetype from browser to desktop/folder without creating shortcut?

I am writing a webpage that hosts some files on it that can be saved out if the user wants to. These files are Unity3D files under the format ".unitypackage" how do I write the drag and drop functionality in HTML to allow these files to be dragged…
0
votes
0 answers

How can I drag just one object, but not all the objects in Unity?

I'm making a 2D puzzle game on android. My code was working fine when I was only working with one object. But then I added more objects and now when I touch one of the puzzle pieces , I'm dragging all of the puzzle pieces on the screen. By the way,…
Dilara U.
  • 1
  • 1
0
votes
1 answer

C# WPF DragDrop event on multiple controls

Hi so i've got a WPF window, 3 different DataGrids and one treeview. My goal is to drag/drop an item from the treeview into a specific datagrid. I've got working code for the drag/drop and its working flawless but my problem is that i don't know how…
Siy
  • 55
  • 8
0
votes
1 answer

How to add a drag/pan gesture to a RelativeLayout?

Coming from an iOS background, I'm trying to understand how to add a pan gesture to a RelativeLayout in my app. I first came up with this: MainActivity.java public class MainActivity extends AppCompatActivity implements View.OnTouchListener { …
Rob
  • 4,123
  • 3
  • 33
  • 53
0
votes
0 answers

how to solve touch coordinates jumps weird while drag and scale

i have relative parent layout and adding custom textview dynamically into it. when i drag(move) and scale my current textview it get weird jumps continuously in both pointer index. how can i solve this issue? my custom textview as given…
0
votes
1 answer

QML Drag on Rectangle doesn't capture events

i'm trying to accomplish a simple drag of a Image that fires an event when the Drag is finished or started. Rectangle { id: upperFooter color: "transparent" Layout.alignment: Qt.AlignLeft | Qt.AlignBottom Drag.onDragFinished:…
sgrumo
  • 615
  • 2
  • 8
  • 24
0
votes
1 answer

Unity2d: How to rotate a parent object from within a child object?

I am building a UI that allows an object to be dragged and rotated. The rotation script works, however when attaching to a child element (UI arrow icon) I cannot move the parent. The parent object is referenced correctly and is outputted to log. …
jjwallace
  • 168
  • 2
  • 16
0
votes
1 answer

Dragging formulas across - Increment columns by more than 1

I can't seem to find anything similar that's already been asked (they all relate to incrementing row numbers rather than columns) I'm looking to drag a formula across horizontally and have the columns increment by 2 E.g. B1-A1, D1-C1,…
Need.Help
  • 11
  • 5
0
votes
0 answers

How to drag an object by the mouse? (opengl)

I read a lot of materials to drag an object by the mouse and applied them to my project... But it still doesn't work. Even the result of gluUnproject seems uncorrect. (I used stencil buffer to index) rendering loop while…
Sse
  • 1
1 2 3
99
100