drag-and-drop

How to add a file in FileList

做~自己de王妃 提交于 2019-12-22 12:32:48
问题 Please help me on this: Update : In console log it is showing as merged but length is still showing the last dragged length Im using up_files = event.originalEvent.dataTransfer.files; to capture the files that are dragged and dropped in a div. For the first time when the user dragged the files , all the files are moving to up_files and the second time if again the files are dropped in a div how can i push those to existing array list instead of clearing the array and insert to upfiles

Ruby selenium webdriver drag and drop

匆匆过客 提交于 2019-12-22 12:23:37
问题 I am trying to perform drag and drop operation using selenium webdriver and ruby, and I tried the following options: Option 1: based on http://rubydoc.info/gems/selenium-webdriver/0.0.28/Selenium/WebDriver/Element#drag_and_drop_on-instance_method el1 = @driver.find_element(:css, "div.captcha div.sliderCaptcha div.arrow") el2 = @driver.find_element(:css, "div.captcha div.sliderCaptcha div.dottedBorder") el1.drag_and_drop_on el2 Option 2: el1 = @driver.find_element(:css, "div.captcha div

Vue Draggable - Multiple Lists

微笑、不失礼 提交于 2019-12-22 12:21:12
问题 I want to create something like a trello board where there are multiple columns and I can drag+drop items across different lists. I want to be able to create the columns dynamically since each user will have different number of lists. For vue-draggable, how can I dynamically create computed values for each list? My data is in this format (which is a single array of lists): lists: [ { "id":1, "label":"List1" "items":[ { "id": 1, "description: "item1" }, { "id": 2, "description: "item2" }, ] },

Vue Draggable - Multiple Lists

你说的曾经没有我的故事 提交于 2019-12-22 12:21:04
问题 I want to create something like a trello board where there are multiple columns and I can drag+drop items across different lists. I want to be able to create the columns dynamically since each user will have different number of lists. For vue-draggable, how can I dynamically create computed values for each list? My data is in this format (which is a single array of lists): lists: [ { "id":1, "label":"List1" "items":[ { "id": 1, "description: "item1" }, { "id": 2, "description: "item2" }, ] },

WPF Drag-to-scroll doesn't work correctly

泄露秘密 提交于 2019-12-22 11:33:58
问题 I am tying to realize a drag-to-scroll functionality in my application and have problems on my way. Can anybody help me? I have a ScrollViewer and inside it an ItemsControl and within ItemsTemplate I have a UserControl. I want to drag that UserControl within ItemsControl. I want the ScrollViewer to scroll down, when I am dragging to the boundaries of the ItemsControl. protected override void OnPreviewMouseMove(System.Windows.Input.MouseEventArgs e) { if (this.IsMouseCaptured) { // Get the new

Silverstripe DataObject - drag and drop ordering

时光毁灭记忆、已成空白 提交于 2019-12-22 11:09:27
问题 Silverstripe DataObject - I want to add drag and drop ordering to a current Class that extends dataobject like what exists for pages. So when dropped it updates an OrderBy field for all the dataobjects in that view. I created the class and can freely edit one item at a time, but a simple drag and drop ordering would make it so much easier but I can not see any such extensions currently on Dataobjects only on Pages. 回答1: In SilverStripe 3.1 there are a few excellent modules that give you this

Creating a copy/clone of imageview android

非 Y 不嫁゛ 提交于 2019-12-22 10:49:20
问题 I am creating a drag and drop application that drags an object on the main layout. My problem is I want to have unlimited/infinity copy of the image view so I can drag the image as many as I can. For example the heart shape, when I already drag the image I cannot have another heart shape because I only have one image(heart) in the layout. This is my code on touch on imageViews (Star, Heart, lightning): private final class MyTouchListener implements OnTouchListener { public boolean onTouch

C#: Drag and Drop in WPF (Richtextbox)

时间秒杀一切 提交于 2019-12-22 10:45:09
问题 i want to implement a Drag/Drop mechanic in WPF, but it didn't work... With Windows-Forms it worked, ... First i set AllowDrop to True. In windows-forms you can already drag items into the richtextbox and the cursor changes. With WPF .... nothing happens. The nexT point: Implement DragEnter and DragDrop Methodes. I did it like the online-manuals says. (ok i had to try out something more, because DragDrop doesn't exists in WPF) I think all tutorials for drag/drop is only for Windowsforms,

Drag drop files from explorer onto Telerik WPF treeview

烈酒焚心 提交于 2019-12-22 09:58:41
问题 How do I set up a telerik WPF RadTreeView to allow dropping files from explorer onto the tree nodes? We go the normal drag n drop events working, but they don't let us know what node we dropped on. We are currently trying to use the Telerik custom drag n drop support but with no luck. Ideas? 回答1: It is pretty simple, you just have to wire it up your self. Here is a simple example. Then this the XAML: <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006

3D space: following the direction that an object is pointing towards, using the mouse pointer

纵饮孤独 提交于 2019-12-22 08:41:52
问题 Given the 3D vector of the direction that the camera is facing and the orientation/direction vector of a 3D object in the 3D space, how can I calculate the 2-dimensional slope that the mouse pointer must follow on the screen in order to visually be moving along the direction of said object? Basically I'd like to be able to click on an arrow and make it move back and forth by dragging it, but only if the mouse pointer drags (roughly) along the length of the arrow, i.e. in the direction that it