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
217
votes
6 answers

disable the swipe gesture that opens the navigation drawer in android

I've been following the navigation drawer guide by Google and I'd like to add it to an Activity with tabs and gestures. I'd like to disable the gesture to open the navigation drawer, does anyone have any idea how to do this?
user1627990
  • 2,587
  • 2
  • 16
  • 18
171
votes
13 answers

Draw on HTML5 Canvas using a mouse

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?
MartinJoo
  • 2,784
  • 9
  • 33
  • 39
111
votes
5 answers

Gesture detection in Flutter TextSpan

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 :)
adko
  • 1,113
  • 2
  • 7
  • 7
99
votes
9 answers

SwipeRefreshLayout + ViewPager, limit horizontal scroll only?

I've implemented SwipeRefreshLayout and ViewPager in my app but there is a big trouble: whenever I'm going to swipe left / right to switch between pages the scrolling is too sensitive. A little swipe down will trigger the SwipeRefreshLayout refresh…
user3896501
  • 2,987
  • 1
  • 22
  • 25
72
votes
7 answers

How to mimic two-finger scroll/drag gesture on ios simulator?

I have a scroll page that I specified two fingers minimum. It works on my device, but don't know how to mimic this gesture on Simulator. I can mimic one-finger scroll without problem. I've tried option/ctrl/shift etc, but couldn't get it work. Maybe…
Tony Xu
  • 3,031
  • 4
  • 32
  • 43
62
votes
5 answers

How can a service listen for touch gestures/events?

I'm wondering how apps like SwipePad and Wave Launcher are able to detect touch gestures/events simply through a service. These apps are able to detect a touch gestures even though it is not in their own Activity. I've looked all over the Internet…
Brian
  • 7,955
  • 16
  • 66
  • 107
52
votes
7 answers

Detect shake gesture IOS Swift

I'm developing a app with a gesture system, basically if I turn the iPhone to left my app will do a function, if I turn the iPhone to Right, other function, with others gestures. I don't have idea how to work with that, i'm trying search in google…
FelipeRsN
  • 887
  • 1
  • 9
  • 19
48
votes
6 answers

How long is the event onLongPress in the Android?

Android supports an event onLongPress. The question I have is 'how long' (in milliseconds) is the 'press' to trigger the event?
mobibob
  • 8,670
  • 20
  • 82
  • 131
38
votes
10 answers

UINavigationController Interactive Pop Gesture Not Working?

So I have a navigation controller in my built for iOS 7 app. The titleView is visible, as well as the back button and navigation bar its self. For some reason, the interactive pop gesture (swipe from the left edge) isn't working. Nothing happens.…
Aaron Wojnowski
  • 6,352
  • 5
  • 29
  • 46
37
votes
6 answers

UISwipeGestureRecognizer Swipe length

Any idea if there is a way to get the length of a swipe gesture or the touches so that i can calculate the distance?
Tomo
  • 373
  • 1
  • 3
  • 4
34
votes
3 answers

Gesture detection and ScrollView issue

I'm trying to create a layout with a ViewFlipper containing ScrollViews. The idea is to detect horizontal swipes to move to previous/next ScrollView. Moreover, the ScrollView contains another ViewFlipper containing ImageView with a vertical swipe…
jul
  • 36,404
  • 64
  • 191
  • 318
34
votes
7 answers

In Flutter, how can a positioned Widget feel taps outside of its parent Stack area?

A Stack contains MyWidget inside of a Positioned. Stack( overflow: Overflow.visible, children: [ Positioned( top: 0.0, left: 0.0, child: MyWidget(), )], ); Since overflow is Overflow.visible and MyWidget is larger than the…
Marcelo Glasberg
  • 29,013
  • 23
  • 109
  • 133
32
votes
3 answers

UITapGestureRecognizer on UIImageView within UITablevlewCell not getting called

I currently have a custom UITableViewCell which contains a UIImageView and trying to add a UITapGestureRecognizer on the UIImageView with no luck. here is snippet of the code. //within cellForRowAtIndexPath (where customer table cell with imageview…
Herman
  • 3,004
  • 5
  • 37
  • 49
32
votes
4 answers

How to make an Android view that flips between views on swipe/fling

I'd like to make a view in my Android app that flips between multiple views on a swipe/fling. I'd like it to behave more or less like the Android Launcher behaves when flipping between views. In particular, It should flip views on…
emmby
  • 99,783
  • 65
  • 191
  • 249
31
votes
8 answers

Switching between Chrome browser windows

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 are running. It seems like in Mac OS there exists cmd +…
trante
  • 33,518
  • 47
  • 192
  • 272
1
2 3
99 100