Questions tagged [gestures]

The tag refers to a method of interaction with graphical user interface. Instead of simply choosing, user may draw a shape (so called gesture) over an item, which is recognized by the software and triggers specific reaction. Gestures are very popular, but not limited to touchscreen applications.

516 questions
137
votes
3 answers

What is the difference between Pan and Swipe in iOS?

Sounds simple .. Hold the Trackpad, move the finger, release .. But somehow swipe is not being triggered (pan is triggered instead) UISwipeGestureRecognizer *swipeGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:v…
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
61
votes
4 answers

How to programmatically trigger the touch event in android?

I would like to trigger a touch event like this: First the finger is touch down at the (0,50%) of the screen and slide to the (50%,50%) of the screen, and exit (move the finger off the screen) I have found some thing like this: MotionEvent event =…
user782104
  • 13,233
  • 55
  • 172
  • 312
58
votes
10 answers

Android: Detect if user touches and drags out of button region?

In Android, how can we detect if a user touches on button and drags out of region of this button?
anticafe
  • 6,816
  • 9
  • 43
  • 74
53
votes
9 answers

Adding Fling Gesture to an image view - Android

Okay I have been referencing the code here: Fling gesture detection on grid layout but just can not get it to work. In my main activity I have a simple image defined. I want to detect a fling on the image. Here is my code below. The onclick method…
Ryan
  • 531
  • 1
  • 5
  • 3
49
votes
4 answers

UITapGestureRecognizer selector, sender is the gesture, not the ui object

I have a series of imageviews that I identify using their tag. I have added a single tap gesture to the images. UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self…
dysan819
  • 1,031
  • 1
  • 8
  • 6
49
votes
8 answers

How to implement swipe gestures for mobile devices?

I have an application made in AngularJS which has arrow key navigation to switch views. I want to implement this navigation using swipe for touch devices. I tried jGestures library but it doesn't go well with swipe. I have been recommended NOT to…
fotuzlab
  • 1,436
  • 1
  • 15
  • 19
44
votes
5 answers

Android: velocity-based ViewPager scrolling

The way the ViewPager scrolls right now is by one item per gesture. It treats flinging gesture the same way no matter if it's full screen fast fling or slow dragging; at the end page advances one step only. Is there any projects perhaps or examples…
Bostone
  • 36,858
  • 39
  • 167
  • 227
42
votes
2 answers

Android "swipe" vs "fling"

In the Android Developers gesture design section, the term "swipe" is used. In the developer section, the term "fling" is used. Are these terms synonymous? From what I have found, I believe they are, but nowhere is it explicitly said one way or the…
Sean Beach
  • 2,050
  • 4
  • 26
  • 35
38
votes
1 answer

Android single- and multi-stroke gestures in the same library confuses the GesturesOverlayView?

I have noticed a problem on various handsets that if you save gestures while the stroketype is set to single and then change the stroketype to multi and add some multi-stroke gestures, the multi ones are often not recognized by the…
Rob Kent
  • 5,183
  • 4
  • 33
  • 54
27
votes
6 answers

How to Implement Swipe Left to Right in UITableView Cell similar to iOS Mail

I'm trying to replicate the same technique that Apple uses in their mail app for marking mail as unread or "Mark as Unread" when you swipe from left to right inside a mailbox. I've found similar solutions but only for a gesture of swiping from…
gh0st
  • 1,653
  • 3
  • 27
  • 59
23
votes
8 answers

TouchableOpacity with parent PanResponder

I have a parent PanResponder with a child TouchableOpacity. What happens is that the TouchableOpacity doesn't respond to clicks because the PanResponder takes the click. I have tried to follow this guide but no…
Maxim Toyberman
  • 1,906
  • 1
  • 20
  • 35
19
votes
2 answers

Javascript zoom and rotate using gesturechange and gestureend

I am working on some touch events and gestures, I want to be able to zoom and rotate the object, I have successfully made it draggable but the gestures are giving me trouble. The gestures are working but they are choppy, whenever you pinch it to…
ryuutatsuo
  • 3,924
  • 3
  • 27
  • 29
17
votes
4 answers

The import com.android.internal.R cannot be resolved

Hi i am working with Gestures and i need to import but i m getting error com.android.internal.R; The import com.android.internal.R cannot be resolved kindly help me , please
user208432
15
votes
3 answers

Disable pinch to zoom in IE10

In IE10 touch mode I wish to make only a certain part of the page zoomable. The rest should not be. I found this: http://msdn.microsoft.com/en-US/library/ie/hh772044.aspx and tried to set -ms-touch-action: none to my body and html tags. However I…
cmplieger
  • 7,155
  • 15
  • 55
  • 83
14
votes
4 answers

What is a good JavaScript library or jQuery plugin for touch gestures?

I don´t need a full fledged framework like Sencha or jQuery mobile, just the ability to detect gestures such as swype or pinch to optimize some parts of my site for touch devices. I have never worked with touch events so I dont really know where to…
agente_secreto
  • 7,959
  • 16
  • 57
  • 83
1
2 3
34 35