2,137 questions
1
vote
0
answers
87
views
Drag and drop files from web app to software
I'm currently developing a web application and I would like to add a drag and drop (dnd) feature. I'm dealing with videos and would like to be able to dnd it directly into a video editing tool like ...
0
votes
0
answers
23
views
How to fix jumping text in draggable element when text is changing in SwiftUI [duplicate]
I’m building a Tinder-like swipeable cards UI in SwiftUI. On each card, I overlay a gradient and show a status label (“Left”, “Right”, “Down”) based on the drag offset. To debug layout, I even give ...
1
vote
2
answers
64
views
Drag event provides strange values at the end of dragging
Granted, I probably use the drag event in a way that is not intended. But I want to make a window scrollable by just "dragging" a non-draggable element. So my drag function looks like this:
&...
1
vote
1
answer
53
views
Is there a workaround for dragging elements affected by ancestor transform on Safari?
On Safari, the drag image of draggable elements affected by transform on an ancestor element is not visible. Is there a workaround for this while still keeping the transform on the ancestor element?
I ...
0
votes
1
answer
57
views
Use programmatic scrolling while ScrollView is still scrolling after users gesture in SwiftUI app
In iOS app written with SwiftUI I need a ScrollView to scroll to certain object that has certain ID. I'm using scrollTo function of ScrollViewReader to do this and it works while ScrollView is not ...
0
votes
0
answers
44
views
How to prevent innerHTML changes to cancel dragging of the element?
The code is visible at https://www.handsearseyes.fun/Ears/EarTrainer/EarTrainer.php?EDO=44&UpToTritave=&Sound=clarinet&Format=mp3&RatioBasedScale= -> press the 'Play Interval' ...
0
votes
1
answer
260
views
How can I add a pinch (magnification & rotation) gesture for resizing in my SwiftUI view along with the existing drag gesture?
I'm working on a SwiftUI view that displays some text which can be moved, resized, and rotated. Right now, I have a working solution where the user can drag a resize arrow (located at the bottom-right)...
1
vote
0
answers
80
views
How to make a functioning transparent button in c#
I'm trying to make a function that has the user drag the program around from a specific spot in the window. I have the drag function coded into the program, but I can't find a way to set where the ...
0
votes
0
answers
29
views
How to handle dragging multiple files from a macOS app to Finder
I've created a mini Finder-like app for macOS that allows users to drag files from my app to the macOS Finder. Dragging works perfectly when a single file is selected, but I'm having trouble enabling ...
5
votes
0
answers
259
views
Why is the onDrag closure called after dropping an item in SwiftUI?
I want to implement drag and drop in a LazyVGrid and created the following view (drag'n'drop doesn't work here as I reduced the code example to a minimum in order to focus on the second call of the ...
1
vote
1
answer
118
views
How to calculate correct position of a element when dragged using translate with scale applied in javascript
I am working on the following Drag and Drop library as a side project. I am using transform translate to make a element draggable. I store the initial client.x and client.y and calculate the translate ...
2
votes
0
answers
332
views
How can I catch the start and the stop triggers of anchored draggable item animation?
I need to connect all the elements inside my LazyColumn to reset all the pinned states if I start changing one of them. Each one has elements for edit and delete behind it that I want to hide for all ...
3
votes
0
answers
493
views
Drag and drop PDF from the New Outlook to winform
Drag and drop PDF from the New Outlook to winform doesn't work. It worked fine if I switch to Classic Outlook.
Tested with .NET Framework 4.8 and .NET 8
Classic Outlook works fine with ...
2
votes
0
answers
216
views
In SwiftUI is it possible to use both .onDrag and .gesture(DragGesture()) simultaneously?
I have an item view that has a .simultaneousGesture(DragGesture()) modifier on it to handle dragging the item around a Canvas and updating its x and y position. I also want to add an .onDrag modifier ...
0
votes
0
answers
78
views
How to make slider draggable in vanilla js
so the thing is that I have slider in which each card has link over it and when I try to do mousedown event on the whole element if that mouse is on the card it is perceived as click.
<div class=&...