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
0
votes
1 answer

Call touch event on parent from iframe

I'm trying to call a touch move event when a user interacts with an iframe. This code is at the top level page which contains the iframe. var myIframe = document.getElementById('iFrame'); var myIframeDoc =…
Cameron
  • 27,963
  • 100
  • 281
  • 483
0
votes
0 answers

How can I forward touch events from Transparent activity to one below it?

I have a tutorial activity which is translucent and it gives instructions on how to use the activity below it. I want to be able to process these touch inputs in the tutorial but also forward them to the below activity. Here is the structure. Have…
0
votes
1 answer

How can I deliver touch event of UIButton to its superview

Now I have a view with tow buttons in it, I want to swipe the view to do something,But I found when my touches begin or end inside buttonView , it undo the action. how can I resolve it?
jaderY
  • 3
  • 4
0
votes
1 answer

How to make a circle move using onTouch in android

I am new to programing. I am trying to move a circle by using the OnTouchListener, but I don't know how to call it within the onTouch event as I have a Class for Circle with x and y and a class called Drawing (d) which draws it on the canvas. I have…
0
votes
1 answer

Android move view to a touched position

I'm trying to develop an android application similar to "on color measurement" or "color grab" which are already on google play. I have problem with getting the exact position of a view (which acts like focus square) and move it to the position…
elahe
  • 11
  • 3
0
votes
1 answer

Trying to find which Sprite was clicked in array of sprites onTouchEnded

I'm trying to detect which sprite was touched in an array of sprites and when it is touched to run an animation at the sprite which was touched. I have all the sprites placed in the map already but when the user touches any other sprite except for…
Joshua R.
  • 1
  • 2
0
votes
1 answer

Google Maps block touch events on Windows Phone

I've got basic google maps implemented on my site. I've put some custom controls (basic DIVs with touch events) over the map area and they work great on all devices. The problem I have with Windows phones is that google maps somehow blocks all…
0
votes
2 answers

Android onClick and onTouchEvent conflict , how to handle it?

I am trying to design SwipeMenu Listview in Android. But i am facing issues while giving listeners to the parent relative layout of the adapter. So , the SwipeMenu is not coming and from SwipeMenuListView , the onTouchEvent is not getting called. I…
MyCode
  • 289
  • 1
  • 5
  • 21
0
votes
0 answers

UpAndroid WebView OnTouchListner throwing Exception

I have the below code which using WebView's OnTouchListner, wvmmsgoftheday.setOnTouchListener(new OnTouchListener() { @SuppressLint("ClickableViewAccessibility") @Override public boolean…
Able Alias
  • 3,824
  • 11
  • 58
  • 87
0
votes
1 answer

Animation ist only smooth when ontouchevent is called

i'm making my first 2d sidescroller game using a surfaceview and a canvas to draw things on (a lot of primitives put in different path objects). my game loop uses fixed timesteps with linear interpolation. i don't create any objects during the game.…
0
votes
1 answer

How to make double tap and panning work at same time, in Android?

So I'm trying to get my view working with many different ways, there should be: Multitouch for zooming Touchlistener for panning Doubleclick for restoring zoom or if it's already restored it will zoom the place where double click was. At the…
niksi
  • 61
  • 8
0
votes
1 answer

Splitting touchesMoved across a single SKSpriteNode

Using SpriteKit, I have created a SKSpriteNode called lightSaber, and using the touchesMoved method, I am able to either rotate the SKSpriteNode or translate it left or right. Is there a way to make it so it does one or the either depending on where…
Lahav
  • 781
  • 10
  • 22
0
votes
0 answers

[TouchEvent]touch event overflow

Code fist: @Override public boolean onInterceptTouchEvent(MotionEvent ev) { switch (ev.getAction()) { case MotionEvent.ACTION_DOWN: isActionCancel = false; isTouchOrRunning = true; lastY = ev.getY(); …
YanceyWang
  • 77
  • 1
  • 6
0
votes
0 answers

How can ViewPager's height be changed at runtime while in MotionEvent.ACTION_MOVE with the getRawY factor

I have a ViewPager and on touch of its tabstrip, I'm moving the whole ViewPager with the touch movement. At this point I want the ViewPager to adjust its height accordingly. I have…
0
votes
1 answer

onTouchEvent() not working as I intend

Following: https://developer.android.com/training/gestures/movement.html for handling movement in an onTouchEvent. My problem is though that it seems the touch is never registered, even when following the tutorial linked. Code: public class Sprite…
Evilunclebill
  • 769
  • 3
  • 9
  • 27
1 2 3
99
100