Questions tagged [draggable]

An element capable of being dragged.

In computer science usually an element is draggable if can be picked using mouse (or another pointing device) and moved around on the screen (or another visualization device).

The term is usually used jointly with the term drop to indicate the sequence needed to pick an object, move it around and then release it in a new position to perform an action.

References:

3630 questions
1
vote
1 answer

Drag and drop in scrollable container on element with dynamic height broken in Internet Explorer

I have a scrollable container with a fixed height, in this container I have some ul lists with li items. In my solution JavaScript is used to give all ul elements the same height, based on the element with the biggest height. I prepared a simple…
Frébo
  • 638
  • 5
  • 12
1
vote
1 answer

JVector Map disable dragging/movement on touch devices

I used JVectorMap (http://jvectormap.com/maps/world/europe/) to create a map of europe. But I don't want that you can drag or move the map. The map is based on jQuery. I get it for desktop computers but on touch devices I can drag and move the map.…
Laurens V
  • 551
  • 1
  • 7
  • 19
1
vote
1 answer

Revert draggable after a different draggable is dropped

I have a 2x2 grid of droppable areas [[A,B][C,D]] and under the grid is a 1x4 grid of draggables. I only want certain draggables next to each other. So for example, if there is a draggable in B, and I drag a different draggable into A, is there a…
1
vote
1 answer

how to send the event to the clone without using jquery on iphone

this is the code: $("#draggable").draggable({ helper: 'clone' }); use this code , if you drag the div , you will drag the clone , this is my code without using jquery and jquery-ui,i want to drag the clone-one when i drag the div: var…
zjm1126
  • 34,604
  • 53
  • 121
  • 166
1
vote
1 answer

How can I stop a ui draggable from exiting the screen?

I am currently using this code that works wonderfully: $(document).ready(function () { if ($.cookie("cvispos") != undefined) { var unwrapped = window.JSON.parse($.cookie("cvispos")); var left =…
1
vote
1 answer

Dragging from and to NSButton

I am trying to write an app. that will allow the user to drag from an NSButton to another. When dropped I would like the Title to be dropped onto the button. I cannot find a way to make NSButton draggable. Is it possible?
1
vote
0 answers

Resct JS react-draggable-tab - Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function

I have a problem while integrating react-draggable-tab (https://github.com/georgeOsdDev/react-draggable-tab) into my React JS/Play Framework application. I have rewrite code example from the app.js…
1
vote
1 answer

Get connection info of Elements

I'm working with jsPlumb and Javascript to implement a simple drag and drop interface of elements where connections can be made amongst each other. I would like to know how I could get the connection details of the sources and the targets when the…
Nayantara Jeyaraj
  • 2,624
  • 7
  • 34
  • 63
1
vote
2 answers

Unoverlappable Draggables with Snap.svg (Javascript)

This is my first time posting a question in Stack Overflow, so feel free to comment on how I can improve my question as well. I am trying to make two SVG rectangle draggables which cannot overlap. To do this, I have used Snap.svg to make the…
1
vote
2 answers

how to drag the blue form in the red div using jquery-ui

this is my code :
delete
zjm1126
  • 34,604
  • 53
  • 121
  • 166
1
vote
1 answer

Dynamically set dragmax using dragable points for Highcharts

I am using highcharts with dragable points for highcharts. I want to be able to drag the chart points, but not past the next point. Their website shows demos of how dragMaxX can be set, but not dynamically:…
Koiski
  • 568
  • 2
  • 8
  • 23
1
vote
1 answer

Prevent click events on Sortable of jQueryUI

I have sortable, draggable and click events binded to the same DOM element. On sorting, I want the click event to be disabled. I am using the following code for draggable, which works fine: $('.selector').draggable({ start: function(event, ui)…
Hrishikesh Choudhari
  • 11,617
  • 18
  • 61
  • 74
1
vote
1 answer

Drag-drop in vb.net

I am new in visual basic and I followed one article to write this code to drag and drop images. But I want to add an if statement to control drag-drop, so if picture 1 goes to picture box 2, it will give a message that it's in the wrong place. My…
1
vote
1 answer

Draggable element in javascript

If I want to make a div draggable I have to specify a reference parent or not?For example in jquery,when an element is draggable does it have a reference parent?
Fistright
  • 175
  • 1
  • 11
1
vote
1 answer

How do I trap an image in a div with jQuery?

I have a div, and I have a draggable image inside of the div. $("#image").draggable(); How do I keep the image from leaving the div? $("#image").draggable(); div{ width:200px; height:200px; border: 1px solid black; }
Recoding
  • 39
  • 6
1 2 3
99
100