drag-and-drop

jQuery UI: Droppable ('drop' event, tolerance: touch ) bug in safari (mac)

↘锁芯ラ 提交于 2019-12-10 16:26:31
问题 I am not able to solve the following problem: The below code works in all browsers of mac as well as windows, except that it works partially on macs safari(5.1.5) . Note: It works on windows safari(5.1.5). This is the basic structure : $(".div2" ).droppable({ accept: '.div1', tolerance: 'touch', drop: function(){ alert('dropped'); } }); So, basically when div1 touches div2 , drop event should be triggered. But the above case does not trigger the drop event. The only case (shown below) that

drag and drop move back to original position after dropped on target with shadow in android?

本秂侑毒 提交于 2019-12-10 16:25:08
问题 onDrag Class: private class ChoiceDragListener implements OnDragListener { @Override public boolean onDrag(View v, DragEvent event) { switch (event.getAction()) { case DragEvent.ACTION_DRAG_STARTED: // no action necessary break; case DragEvent.ACTION_DRAG_ENTERED: // no action necessary break; case DragEvent.ACTION_DRAG_EXITED: // no action necessary break; case DragEvent.ACTION_DROP: // handle the dragged view being dropped over a drop view View view = (View) event.getLocalState();

d3 v4 drag line chart with x and y axes

做~自己de王妃 提交于 2019-12-10 16:16:29
问题 I'm new to d3.js. I wanted to drag a line chart using its points. It is working fine without the x and y axes. I have used this example as reference: https://bl.ocks.org/mbostock/4342190 With the axes to the line chart the line is not plotting correcly. Please have a look into the snippet below. Thanks in advance. <!DOCTYPE html> <svg width="500" height="350"></svg> <script src="https://d3js.org/d3.v4.min.js"></script> <script> var svg = d3.select("svg"), margin = {top: 20, right: 20, bottom:

Is there a method to check the UICollectionView item drag cancellation if the item wasn't moved?

一曲冷凌霜 提交于 2019-12-10 16:12:50
问题 I use drag and drop to rearrange a collectionView. When I start the drag, I change the collectionView visualization. To change it back I need a method which will be executed in any case. Now if I start the drag and release the touch immediately, none of the following methods are executed: not this: func collectionView(_ collectionView: UICollectionView, dragSessionDidEnd session: UIDragSession) not this: func collectionView(_ collectionView: UICollectionView, dropSessionDidEnd session:

Make the rows of the datagrid draggable in GWT

ε祈祈猫儿з 提交于 2019-12-10 15:59:14
问题 I want to make a datagrid in which rows will be draggable so that a person can move rows up and down by dragging the rows. As row of the datagrid will be get as an element. I know how to make the widgets draggable, but how the rows of the datagrid can be made draggable? I don't want to use any extra plugin or library for achieving this. 回答1: The only library I know of that support drag&drop with(in) cell widgets is GwtQuery with droppable plugin, see their showcase. I suggest your to give it

WPF C# Drag and Drop

半世苍凉 提交于 2019-12-10 15:46:02
问题 Basically i am doing a drag and drop using textbox and labels , by dragging a label to a textbox . Textboxes and Labels are created in same for loop . I have dynamically created textboxes ( textbox is the drop target) like this : TextBox tbox = new TextBox(); tbox.Width = 250; tbox.Height = 50; tbox.AllowDrop = true; tbox.FontSize = 24; tbox.BorderThickness = new Thickness(2); tbox.BorderBrush = Brushes.BlanchedAlmond; tbox.Drop += new DragEventHandler(tbox_Drop); if (lstQuestion[i].Answer

Can't get simple WPF drag and drop to work

萝らか妹 提交于 2019-12-10 15:43:29
问题 For a simple test I want to drag a Button to a TextBox. I can start dragging the Button, but the Drop event is not raised. What am I missing? Xaml: <Window x:Class="DayPlanner.View.DnDTest" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="DnDTest" Height="200" Width="200"> <StackPanel> <Button Name="button" Content="OK" PreviewMouseLeftButtonDown="button_PreviewMouseLeftButtonDown" PreviewMouseMove="button

drag and drop using jquery

那年仲夏 提交于 2019-12-10 15:35:14
问题 i have two lists which are based on jquery, sample is here i need exactly same functionality but with slightchanges like follows: as per the above when i click on Get items i get all the sortable items values but what i want is drag from List A and put them to List B and vise versa, if i click on get items i should get only sortable items on List B not from List A. how to do this, can we customise the above jquery lib or is there any other even if they are in java script it is fine for me.

Understanding HTML 5 event drag

社会主义新天地 提交于 2019-12-10 15:28:19
问题 I do not understand why the returning value for mouse coordinate clientX in event drag is always 0 or a negative value just before releasing the mouse. I have prepare an example, when user dragstart , mouse position is correct, same for end dragend ... but if you look at the console for drag you will see before dragend a negative value. Is a normal behavior? Why? I need to avoid this 0 value. any solutions? http://jsfiddle.net/gg8gLpg0/ <!DOCTYPE html> <html xmlns="http://www.w3.org/1999

Drag and drop is not happening in Cypress.io test

怎甘沉沦 提交于 2019-12-10 15:24:08
问题 I am trying to drag an element and then drop it into a drop zone area, but the test is not performing the drag and drop action in Cypress.io. It would be really helpful if someone could advise about the potential issue here. There are no errors throwing, but still, the drag and drop is not happening here. describe('Verify the drag and drop test', function() { it.only('Check whether the drag and drop of an item is working fine', function() { cy.visit('http://www.seleniumeasy.com/test/drag-and