drag-and-drop

React native drag and drop position football training

霸气de小男生 提交于 2019-12-07 13:28:35
I have such a thing, the formations are so declared: 4-4-2: [ [{}]//1 [{},{},{},{}...],//4 [{},{},{},{}...],//4 [{},{}...]//2 ] So I do two nested cycles, one to scroll the rows from the door to the midfield (number of arrays inside the main array), and one to scroll through each individual player per row (number of obj within the single array row). So far it works properly, I repeat this thing both for the home team and the away team is working properly. The problem is that I would like to apply the drap and drop. What I would like to do is that initially the positions of the players are from

Is it possible to code drag&drop templates for mailchimp?

痞子三分冷 提交于 2019-12-07 13:24:13
问题 Seems like mailchimp has two types of templates: classic and "drag and drop." The classic templates (they call these "themes") have content areas defined using the mc: attrubutes. Some of these can be repeated but can't be moved around. The "drag and drop" templates have "container" zones which accept content blocks from a menu which appears only when the template is of the "drag and drop" kind. Seems that it is impossible to code and import a "drag and drop" template. I tried exporting one

Drag and drop in an NSView

感情迁移 提交于 2019-12-07 12:44:25
问题 I'm testig drag and drop in an NSView, but draggingEntered: is never called. code : #import <Cocoa/Cocoa.h> @interface testViewDrag : NSView <NSDraggingDestination> @end @implementation testViewDrag - (id)initWithFrame:(NSRect)frame { self = [super initWithFrame:frame]; if (self) { [self registerForDraggedTypes:[NSImage imagePasteboardTypes]]; NSLog(@"initWithFrame"); } return self; } -(NSDragOperation)draggingEntered:(id<NSDraggingInfo>)sender { NSLog(@"draggingEntered"); return

Java Drag and drop on OS X reports Move instead of Copy

心已入冬 提交于 2019-12-07 12:33:26
问题 Update/status: Bug is reported to Oracle and currently still open/unresolved: https://bugs.openjdk.java.net/browse/JDK-8054325 I've found a strange bug, which only manifests itself on Java 7 and 8 on OS X, not in Java 6, neither on Java 7 Windows. Below is the extracted bug removing as much unneeded code as possible. It leaves us with a small table and a button, where we can drag the cell from the table on top of the button. In our production code we are using a TransferHandler that has COPY

How to implement detection of a View being dragged over another view?

痴心易碎 提交于 2019-12-07 11:38:26
I want to have a draggable view, while being able to constantly monitor distance to the "target" view and to detect when draggable view is dragged over target view. My idea was to get Rect's of both views and to use intersect() to check if they are touching. However my implementation doesnt work smoothly - sometimes it detects overlap in wrong location or doesnt detect the end of overlapping. Could you tell me what I'm doing wrong or maybe lead to correct way of doing it? (I cant use startDrag() , because it doesnt allow to monitor events while dragging). Code in the onCreate : //find UI

Get drop index in Silverlight drag / drop

你。 提交于 2019-12-07 10:47:16
问题 This article shows how to implement a copy operation on a drop event. I'd like to do the same but I want my dropped item to appear in the collection according to where it was placed on the UI. So I need the StartIndex much like on a NotifyCollectionChangedEventArgs when an ObservableCollection changes. In the article you'll see that eventually you get a SelectionCollection object whose items have an Index property. But unfortunately this is the index of the source collection (where it was

Drag and Drop in nested dataTables

五迷三道 提交于 2019-12-07 09:55:06
问题 I am using primeface 4.0. The primeface showcase only shows how to drag a draggable in to a droppable . But then how to drag a that draggable out of that droppable is never mentioned. I wantto make a dataTable that: Each td cantains a droppable panel which multiple draggable can be both draged in to and out of . A back bean object that "keeps data" of this dataTable, which I assume if the dataTable is 2*2, there will be 4 List in the back bean, each stores a list of draggable objects of

Disable drop if div has already been dropped?

独自空忆成欢 提交于 2019-12-07 08:24:24
I've created a drag and drop game in order to start teaching myself jquery. Everything seems to be working but you can drop more than one item onto the same square. I want to disable droppable if the place holder has an image in it. I've looked into: `greedy: true` That disables the drop but I'm not sure how to enable it again and also: $(this).droppable( 'disable' ); I can get these both to disable the drop but not sure how I get them to enable it again if the block/image reverts back to its original position or is moved to another square. Full version: http://creativelabel.co.uk/drag-and

HTML5 drag and drop not working on IE11

白昼怎懂夜的黑 提交于 2019-12-07 08:00:53
问题 Got HTML5 native drag and drop applied, drop is no working with IE, working well with chrome and firefox. the dragging appears to be working but drop isnt happaning on IE. another small question - in IE i got a half transparent square around my draggable element, but its background is transparent(the image is done like that), and on chrome/firefox i dont have that square and the image look without any background while dragging. this is the drop area: <div id="4x2" class="dropArea" draggable=

html5: is there a way to prevent children interfering with drag events

家住魔仙堡 提交于 2019-12-07 07:51:28
问题 I'm having a bit of a problem with html5 drag and drop. I don't see an easy way out of it. Basically i have some "boxes" with some other html elements inside. The parent boxes are draggable and they can be dropped on each other. I bind dragover event on the body to handle drag-drop on the entire page. Problem is, when you drag over the boxes - the event is sometimes triggered on child elements and the parent doesn't get this event at all. Is there an easy way to prevent this from happening?