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

Angular: How to get element ID of item on which other element has been dropped

I have two unordered list with draggable
  • items. I want the
  • items to be draggable and droppable on the
  • items of the other list and get both the id of the dragged
  • item and the id of the
  • item on which the dragged one has been…
  • user3261212
    • 391
    • 2
    • 15
    0
    votes
    1 answer

    Difficulty removing UITextView border while keeping indentation

    I'm writing an iOS app where the user can add text fields, then drag them around the screen to reposition them, layout-style, sort of like Keynote. I'm currently appending the user-added UITextFields to an @IBOutlet Collection and defaulting to…
    Gallaugher
    • 1,593
    • 16
    • 27
    0
    votes
    1 answer

    WPF C# How to Make Control Draggable with Mouse

    I am trying to make a UserControl that drags across the canvas. I am using C# and WPF. I see many examples across the net, but I just need the bare minimum. I found an article: "Draggable Control in WPF" Someone responded with: If you want to do it…
    pirit4
    • 11
    • 2
    • 5
    0
    votes
    0 answers

    How to change the number presented when dragging items

    In NSCollectionView when you are dragging multiple items, there is a red circle with a number that indicates the number of dragged items. I need to manipulate this number or at least hide it. Can anyone give me a clue how to do this? Here is an…
    Sanich
    • 1,739
    • 6
    • 25
    • 43
    0
    votes
    2 answers

    How to use two gestureRecognizers simultaniously

    Within my view I've got several images. All of those images are linked to a LongPressGestureRecognizer and a PanGestureRecognizer. When a user Press and holds (LongPressGesture) the image animates (wiggles). When the users drags the image ,after the…
    BarryK88
    • 1,806
    • 2
    • 25
    • 41
    0
    votes
    1 answer

    Allowing players to drag objects in Unity

    I'm currently making a game in Unity where I want the player to have the ability to drag objects troughout the screen based on the touch position. I created a script in order to do this and from what I know it doens't have any mistakes and should…
    0
    votes
    1 answer

    Drag and Swap two objects using Touch in Unity

    The game has 4 objects with sprite side by side. I want the game to swap the position of two objects when I drag one object and move it towards the second object (dragged object should move to second object's position and the second object should…
    Ak Pasaf
    • 207
    • 2
    • 5
    • 12
    0
    votes
    1 answer

    Xamarin.Forms drag listview item and show options?

    Hy guys, I'm working with Xamarin.Forms and I have a doubt, could I do something like this in a ListView?
    notarealgreal
    • 734
    • 16
    • 29
    0
    votes
    1 answer

    How do I stop (no-)dragging in javascript?

    I'm working on an online javascript canvas (not the HTML5 element, but a painting canvas). When the user starts painting, he clicks and moves the mouse from one side of the canvas to the other. This canvas is actually a table which consists of one…
    bopjesvla
    • 755
    • 4
    • 15
    • 22
    0
    votes
    0 answers

    Drag events does not fire

    I am trying to make a div list draggable. I tried using drag events however, when I debug, I realize that it even does not get into the functions. What may be the problem? Here is my code: setDragDrop() { const cols =…
    beginner_
    • 31
    • 1
    • 5
    0
    votes
    1 answer

    Unity - dragging object after camera moved

    I need help how to fix dragging object. When I move camera to the right (also with image/sprite object) and I drag object, it appears on previous position. If I change Render Mode to screen space - overlay, its working but only with images not with…
    vb381
    • 181
    • 1
    • 3
    • 14
    0
    votes
    1 answer

    How to move marker on tap instead of long press

    What I want ? When user taps on marker its image should change and user should be able to move the marker and I should be able to get the latitude and longitude . Below is a video of requirement . What I have tried so far ? I tried to implement…
    Manohar
    • 22,116
    • 9
    • 108
    • 144
    0
    votes
    1 answer

    Dragging Objects in C#

    I am attempting to drag Music Notes vertically, up and down a Music Staff. However, rather than a constant drag, I would like the music notes to only be allowed to be dragged onto particular intervals (only specific y-coordinates). For example, in a…
    Luke Xuereb
    • 73
    • 12
    0
    votes
    1 answer

    Create rectangle on image using mouseDown C++/CLI

    I am having difficulty debugging this program. I am trying to imitate the function on microsoft desktop that you can drag into a rectangle. We want to make it so that it: 1. in order to start drawing the rectangle you press the mouse down. 2. by…
    Luron
    • 1,157
    • 5
    • 17
    • 30
    0
    votes
    2 answers

    Gesture recognizer within a UIScrollview

    I've got a scroller within my view and got several images inside this scroller. I'd like to drag and drop these images out (and into) my scroller. I implemented a LongPressGestureRecognizer. I also would like to know (by code) which image got…
    BarryK88
    • 1,806
    • 2
    • 25
    • 41