gesture Questions

5

Is there a way to detect which word in the TextSpan was touched by the user? This paragraph is here to get round the stack overflow robot that is insisting that I write more stuff :)
Hazard asked 21/2, 2018 at 20:20

6

Solved

What I want to build is a widget that can make its child widget zoomable similar to the zoomable behavior. Gestures I want to cover are Pinch To Zoom Double Tap to Zoom Tap to get the local Posi...
Mischance asked 3/6, 2019 at 8:34

1

I need to run my custom protocol twice but it doesn't work the second time, I got this error ( Not allowed to launch 'cutomProtocol' because user gesture is required. ) I tried to find a solution b...
Allain asked 23/3, 2022 at 8:3

3

Solved

I noticed that when I swipe my finger from left to right across a home screen widget, in simulator on a AVD, Android switch to the left home screen. I was wondering if its possible to prevent this...
Verada asked 30/1, 2010 at 10:21

1

In the React Native docs on PanResponder , their functional component example applies a useRef to the PanResponder variable they create. const panResponder = useRef( PanResponder.create({ onMoveS...
Barbaric asked 22/6, 2020 at 14:10

1

I’m using the .onDrag modifier to enable a drag/drop operation: struct RootView: View { @State var dragging: Bool = false var body: some View { VStack { Color.red.cornerRadius(.some) .fram...
Nighttime asked 26/4, 2022 at 15:30

13

Solved

I want to draw on a HTML Canvas using a mouse (for example, draw a signature, draw a name, ...) How would I go about implementing this?
Staysail asked 3/3, 2010 at 4:29

1

I have a vertical scrollView then a horizontal pageView containing images wrapped inside InteractiveViewer. but it's quite a mess when I try zooming-in with the InteractiveViewer. all those scrollv...
Aircrew asked 19/8, 2022 at 0:47

2

I was wondering how can one get DragGesture Velocity? I understand the formula works and how to manually get it but when I do so it is no where what Apple returns (at least some times its very diff...
Blastocyst asked 15/7, 2020 at 1:7

1

Solved

I would like to use drag and tap gestures in the same view. Canvas( modifier = Modifier .fillMaxSize() .pointerInput(Unit) { detectTapGestures( onDoubleTap = { Log.i("Double Tap&q...
Salzburg asked 13/7, 2022 at 20:39

3

Solved

I need to listen to the user when he stops drag and drop on my RecyclerView (when he drops the selected item). Can I get this Information through my ItemTouchHelper? Thanks for helping Mark: At ...
Correna asked 24/5, 2016 at 23:25

1

Solved

I'm trying to create a bottom sheet in swift ui that looks something like this https://user-images.githubusercontent.com/33900517/172068237-4dd58374-b6e6-4340-a913-7085fb64b254.mp4 My issue is that...
Ferrocene asked 7/6, 2022 at 3:13

2

TLDR: I need a way to disable Android 10 gesture navigation programmatically so that they don't accidentally go back when they swipe from the sides The backstory: Android 10 introduced gesture nav...

3

Solved

I would like to trigger an animation when the user drags a finger over my view. I can do something like Image(…) .rotationEffect(…) .animation(self.isAnimating ? .spring : .default) .gesture( D...
Destruction asked 14/8, 2021 at 17:18

7

I just started learning to program for android and sadly after making one program (Hello World) I have already ran into an issue. The gesture for "Swipe to Unlock" or for the camera are not functio...
Coates asked 21/3, 2015 at 2:33

5

Solved

Here is my code. App.js import Swipeable from 'react-native-gesture-handler/Swipeable'; const RightActions = () => { return ( <TouchableOpacity onPress={() => console.warn('works'))}&...
Mclean asked 9/8, 2019 at 10:32

0

I want to register a certain drag gesture on any SwiftUI view, including ScrollViews simultaneously with any other gestures (i.e. without influencing existing gestures). However, when adding a Drag...
Nanna asked 25/4, 2022 at 9:47

4

How can I detect when a TextField is tapped? (SwiftUI on MacOS) import SwiftUI struct ContentView: View { @State var field: String = "TextField" var body: some View { TextField(&quo...
Unpack asked 22/11, 2019 at 4:40

8

I want to create a gesture for StrokesPlus that will switch between the Google Chrome windows. Of course it is possible to switch with Alt + Tab, but I don't want to see other programs that a...
Rossman asked 28/5, 2013 at 19:37

8

Solved

So I have a widget GestureDetector in Flutter and I want it to do something on "hover", like this (dragged in any direction): Is it possible to do it with GestureDetector? Any help appre...
Mcdonough asked 26/11, 2020 at 16:24

2

I'm creating a PWA, ASP server side and JS client side. Users interact nicely with it using buttons. The boss ask me if we can implement something like "scroll between app screen" or &quo...
Deemster asked 25/3, 2021 at 18:59

2

Solved

So I have a Rectangle with an added DragGesture and want to track gesture start, change and ending. The issue is when I put another finger on the Rectangle while performing the gesture, the first g...
Woodwaxen asked 11/11, 2019 at 19:16

1

First, let me tell u that i am stressed out by this, because i don't even know the concept / method name, so i can't even search it in google as i don't know the keywords, but ill try my best to ex...
Galer asked 26/5, 2015 at 4:25

2

Solved

I have a problem after upgrading to Xcode 12 and iOS 14. Scenario: I have a Nested UITableView: nestedTableView. Like below class GAllowGestureEventPassTableView: UITableView, UIGestureRecognizerDe...
Wojak asked 21/9, 2020 at 7:29

2

Solved

Since Flutter 2.5 got released, touch gestures are not working anymore (for example with ScrollViwes or Tabs). I didn't test in on Android / IOS, since I am not developing for these platforms at th...
Department asked 20/9, 2021 at 11:31

© 2022 - 2024 — McMap. All rights reserved.