Questions tagged [gesture]

A gesture is a specific pattern of touch, cursor, or physical movement that may be recognized by an application to perform a specific task.

A gesture is a specific pattern of touch, cursor, or physical movement (Recognized through a camera or other sensor such as or ) that may be recognized by an application to perform a specific task. See also .

2187 questions
15
votes
1 answer

Jetpack Compose: how to disable gesture detection on children

Is there a built-in Modifier that disables any gesture detection / pointer input interaction of its children? e.g. @Composable fun Foo() { Box(modifier = Modifier.gesturesEnabled(enabled = false)) { BasicText(text = "Hello", modifier =…
user16885569
  • 221
  • 1
  • 4
  • 11
15
votes
2 answers

SwiftUI: Multitouch gesture / Multiple Gestures

Is there a way in SwiftUI to track multiple gestures at once? I want my one main view to be able to keep track of multiple fingers dragging at once. ZStack { Color.black .edgesIgnoringSafeArea(.all) …
Matt Bart
  • 809
  • 1
  • 7
  • 26
15
votes
2 answers

Spinner scrolls to top when onLongPress or scrolling slowly

I have a spinner with a LOOONG list of items. What I noticed is that whenever I try to scroll the spinner items SLOWLY, it suddenly takes me back to the top of the spinner selection. I'm just using a standard Spinner with a simple ArrayAdapter. It's…
momoja
  • 938
  • 9
  • 23
15
votes
3 answers

How to detect a swipe gesture on webview

i'm developing a simple android application with a RelativeLayout and a WebView inside. I have to detect swipe from bottom to top done only in the 20% of the left part of the screen. So when user swipe in that space from bottom to top i have to…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
14
votes
1 answer

Does having variations of gestures in gesture library improve recognition?

I'm working on implementing gesture recognition in my app, using the Gestures Builder to create a library of gestures. I'm wondering if having multiple variations of a gesture will help or hinder recognition (or performance). For example, I want…
Andy Dennie
  • 6,012
  • 2
  • 32
  • 51
14
votes
3 answers

Proximity sensor on Galaxy S4 (Air Gestures)

The new Samsung Galaxy S4 have and interesting new type of gestures called "Air Gesture" that use an infrared sensor to process users hand movement in front of the screen, adding a "pre-touch"/"proximity" event, in which the fingers are detected…
Nifhel
  • 2,013
  • 2
  • 26
  • 39
14
votes
1 answer

Enabling Swipe-to-delete while showing reorder controls on UITableView

I am looking to allow reordering of UITableViewCells and deleting via swipe to delete, but not via the red delete circle. - (void)loadView { [super loadView]; [table setEditing:YES animated:NO]; } - (void)tableView:(UITableView *)tableView…
rpetrich
  • 32,196
  • 6
  • 66
  • 89
14
votes
2 answers

How do I programmatically end/reset a UIGestureRecognizer?

Say I am currently tracking a drag gesture. In my event handler I use a threshold to determine when the drag results in an action. When the threshold is crossed, I want to indicate that the drag gesture has completed. The only thing I can find in…
Mattijs
  • 1,909
  • 3
  • 19
  • 28
13
votes
2 answers

Problem with gesture in Xcode 12 and iOS 14

I have a problem after upgrading to Xcode 12 and iOS 14. Scenario: I have a Nested UITableView: nestedTableView. Like below class GAllowGestureEventPassTableView: UITableView, UIGestureRecognizerDelegate { var allowGestureEventPassViews:…
Django Free
  • 491
  • 4
  • 10
13
votes
3 answers

Gesture Detector not working

I has the following GestureListener: public class BookListener extends SimpleOnGestureListener implements OnTouchListener { private LibraryActivity main; private Book book; private GestureDetector gesture; public BookListener(Book book,…
Marcos Vasconcelos
  • 18,136
  • 30
  • 106
  • 167
13
votes
3 answers

Fling Gesture and Webview in Android

I have a webview control that needs to support the fling gesture in Android in order to bring up a new record (load new data). This is occuring in a class that extends Activity. All the examples I've seen show how to implement gesture support for a…
Rob Bushway
  • 153
  • 1
  • 2
  • 7
13
votes
4 answers

Detect 3 fingers pan gesture even outside a macOS app's window perpetually

How can I detect a 3 fingers pan gesture on my mac trackpad everywhere on the screen (not only in my app's window) perpetually (without having the focus on my app's window) ? Thanks !
Jonathan
  • 873
  • 3
  • 9
  • 23
13
votes
2 answers

Gesture in listview android

hi i have to add a gesture to my listview,i want to implement the same functionality of contact application. when i left swipe it should send a message,right swipe it should call. can anyone help me how to do those gesture detection... i have…
Ads
  • 6,681
  • 12
  • 47
  • 72
13
votes
1 answer

iOS Advanced Gestures: Getting Swipe Direction Vector

Looking through the documentation, it seems that the new advanced gestures API doesn't determine the direction of a swipe beyond the basic { left, right, up, down }. I need the start point of the swipe and the direction. Is there anyway to retrieve…
P i
  • 29,020
  • 36
  • 159
  • 267
13
votes
1 answer

Pan gesture: why need setTranslation to zero?

I add a pan gesture to a view, move the view while finger moved, but I found if I do not call recognizer.setTranslation(CGPointZero, inView: self.view), translation is not right. why ? @IBAction func handlePan(recognizer:UIPanGestureRecognizer)…
BollMose
  • 3,002
  • 4
  • 32
  • 41