Questions tagged [touch-event]

An event that is triggered when a user 'touches' a GUI component

A TouchEvent is an event that is triggered when a user 'touches' a GUI component. This is most commonly associated with applications that are designed to run on smart phones and touch screens. Many programming languages will treat an TouchEvent the same as a MouseEvent, which helps to provide touch functionality to applications that haven't specifically been designed for touch interactions.

1935 questions
7
votes
0 answers

Flutter, Intercept touch events in nested widget (Map inside PageView case)

My FlutterMap (flutter_map), that responds to scale / pan / tap gestures is the last element of a CustomScrollView, that is itself one of the pages of a PageView. TL/DR: I want the map to always get the events. As you see in the picture,…
rupps
  • 9,712
  • 4
  • 55
  • 95
7
votes
2 answers

MyGestureDetector extends SimpleOnGestureListener

I am implementing a MyGestureDetector that extends a SimpleOnGestureListener. I borrowed the class from: http://www.codeshogun.com/blog/tag/view-flipper/ to allow a swipe action in a ViewFlipper. I can not get if to function on the emulator. Any…
user742030
7
votes
1 answer

In SpriteKit does touchesBegan run in the same thread as the SKScene update method?

In the Apple documentation here Advanced Scene Processing it describes the update method and how a scene is rendered, but it does not mention when input is processed. It is not clear if this is in in the same thread as the rendering loop, or whether…
rghome
  • 8,529
  • 8
  • 43
  • 62
7
votes
4 answers

How To Detect "Touch Down" in superview of UIScrollView?

I have a UIView that contains a UIScrollView and I want to be able to capture the "Touch Down" event in the UIView any time the user taps on the UIScrollView. I've tried including all the touchesBegan/Ended/Cancelled handlers in my UIViewController…
wgpubs
  • 8,131
  • 15
  • 62
  • 109
7
votes
3 answers

How to detect touch event in child viewcontroller in ios

I have created a sideview like menu for the iPhone for which I have used container ship concept for adding child view controller in the parent view controller. When user taps on menu button on the navigation bar I just change the frame of child view…
7
votes
2 answers

ScrollView with children view, how to intercept scroll conditionally

I have a container ViewGroup, lets call it screen inside a ScrollView. This container view hosts a number of other Views let's call them widgets, and some of them are interested in preventing the ScrollView from scrolling and using the MotionEvent…
rupps
  • 9,712
  • 4
  • 55
  • 95
7
votes
1 answer

Is there a fastclick library (or other solution) in Dart to remove the 300ms delay (ghostclick) on mobile devices?

My app is less responsive on mobile devices. It seems that many (all?) browsers put a 300ms delay to decide if the touch was a simple or double touch. There are solutions for this, like fastclick, but I'm wondering if there is one using Dart code…
Eric Lavoie
  • 5,121
  • 3
  • 32
  • 49
7
votes
2 answers

TouchEvent / MouseEvent local position inside div

I've been developing an HTML5 application and now I'm facing quite a difficult problem getting a proper local touch / mouse position inside a target div in a proper coordinate system. There are many solutions on StackOverflow but the thing is not so…
Pavel Stupka
  • 213
  • 2
  • 14
7
votes
1 answer

UIView animation prevents touch events?

On Objective-C when animation starts on the UIView, no touch interaction is accepted. how can we handle this?
erdemgc
  • 125
  • 1
  • 9
7
votes
2 answers

Is there an equivalent for dispatchTouchEvent() from Activity in Dialog or DialogFragment

I need to intercept all touch events in the application to monitor for a custom activity time out. Currently I use dispatchTouchEvent() in my activities but this is not called if I have a dialog on the screen. Does any one know if there any way I…
draksia
  • 2,371
  • 2
  • 20
  • 25
7
votes
1 answer

touchenter event not being called

Can anyone tell me why the touchenter event is not working in this code. The mouseenter works fine on a desktop. Should be so simple, I'm missing something though. Example here - http://jsfiddle.net/gCEqH/6/ Full code below:
Justin
  • 299
  • 1
  • 3
  • 9
7
votes
2 answers

Android - JavaScript : touchstart event not fired until zoom or scroll the page

In my Android application, The user can browse some HTML pages using ViewPager, and the user can touch an element to highlight. the problem is when trying to get the touch event using javascript using the following code, elementFromPoint returns…
Ahmed Al Khashab
  • 373
  • 1
  • 9
  • 19
7
votes
3 answers

bxSlider touch enabled - disable vertical touch events so only horizontal touch events work

I'm using probably one of my favourite jquery slider plugins: bxSlider http://bxslider.com/options#touchEnabled Recently they've updated with some touch enabling for devices. This allows you to scroll your sliders via swiping. But on my current…
Joshc
  • 3,825
  • 16
  • 79
  • 121
7
votes
4 answers

onInterceptTouchEvent, onTouchEvent only see ACTION_DOWN

I have a top level ViewGroup, which I call SliderView, in which I want to detect swiping. This is mostly working, but one weird failure persists. The essence of SliderView is to override onInterceptTouchEvent and, once the user is actually swiping,…
Peri Hartman
  • 19,314
  • 18
  • 55
  • 101
7
votes
5 answers

ImageView Drag Limitation In Android

I have an ImageView in a layout and set OnTouchListener on ImageView to drag the ImageView. It's working perfectly. My problem is how can I prevent from move ImageView to out of layout range? This is my code: Activity class: public class…
Vahid Javaherifar
  • 155
  • 1
  • 2
  • 8