touch-event Questions
2
Solved
I'm working on a canvas javascript where with the mousemove event you can erase the background...
Now i'm trying to get the same experience for touchscreens (mobile).
How can I give my code the m...
Ochoa asked 12/5, 2017 at 10:56
7
Solved
I'm adding ImageViews to parent layout dynamically and performing zoom in/out operations with onTouch on the added image.
I want to remove the added view with an onLongPress of it.
img.setOnLongCli...
Frizzell asked 8/6, 2012 at 10:1
4
Solved
I add a UITapGestureRecognizer:tapGesture, I want that when I click(touch) the label, klikPlay() will run its actions.
when I run the code and click/touch the label, it gives this error:
unrec...
Anticipation asked 21/11, 2014 at 15:24
1
There are some C# libraries that allow to capture mouse and keyboard events by listening to low level Windows calls by installing global hooks, but none of them allows capturing Windows 8 Stylus pr...
Fibrosis asked 9/5, 2014 at 9:59
1
I want to show a hint after the user hasn't touched a screen for 30 seconds. For this restartInactivityTimer() function needs to be called whenever the screen is touched.
Is there a way to discover...
Astounding asked 30/9, 2023 at 9:42
3
Solved
Is it possible to disable the context zoom triggered by double-tapping an element on Chrome? (Setup: Nexus 10 | Android 4.3 | Chrome 30).
Double-tapping isn't one of the native touch events (touch...
Ku asked 5/11, 2013 at 13:19
2
After reading this event_touchcancel doc:
The touchcancel event occurs when the touch event gets interrupted.
Different devices will interrupt a touch event at different actions, and it is consi...
Rainier asked 5/3, 2021 at 7:54
15
What's the best way to disable the touch events for all the views?
Rottweiler asked 24/3, 2011 at 11:38
11
Solved
In my application, I need to handle both move and click events.
A click is a sequence of one ACTION_DOWN action, several ACTION_MOVE actions and one ACTION_UP action. In theory, if you get an ACTI...
Demandant asked 1/4, 2012 at 15:37
4
I'm encountering unwanted behavior when using JQuery's $.on("click", function(){}); on touch devices. This is my code below:
Code:
$(".team").on("mouseover", teamMouseOver);
$(".team").on("mouseo...
Mimas asked 24/5, 2016 at 3:8
0
I am able to get the start of a long press via touchstart event. However, it doesn't trigger touchend after the long press is completed, when the right click menu appears nor when the right click m...
Equivocation asked 20/4, 2022 at 9:22
4
Some time ago I was struggling with drag and drop in web browsers on mobile devices. The default javascript events do not work on mobile. You can use only touch events.
In my case, I need to swap ...
Arachne asked 29/11, 2018 at 1:20
1
working on a webgame with ThreeJS. On iOS, a longpress creates a small haptic vibration feedback after 0.5s have passed.
Since I'd like the user to be able to hold their finger down to walk around,...
Crenate asked 30/1, 2021 at 5:6
7
I have a ScrollView and an ImageView inside a FrameLayout. The ImageView is behind the scroll view
My ScrollView have a transparent space (LinearLayout s_layout_transparent with 925px height).
So...
Jidda asked 15/9, 2014 at 1:54
1
First, let me tell u that i am stressed out by this, because i don't even know the concept / method name, so i can't even search it in google as i don't know the keywords, but ill try my best to ex...
Galer asked 26/5, 2015 at 4:25
4
Solved
I'm building something mainly for use on tablets, where the user can tap an item on the screen and a class is applied to it. This is what I have so far:
The problems:
I want to use touch events ...
Velamen asked 25/4, 2013 at 2:47
2
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 o...
Oftentimes asked 15/4, 2013 at 20:36
4
I am able to simulate tap events on typical android views (textbox, button, etc.) using MotionEvent.obtain, like this:
int meta_state = 0;
MotionEvent motionEvent = MotionEvent.obtain(
SystemCl...
Galahad asked 2/1, 2014 at 16:8
4
I need to track an event each time user clicks on any clickable view in my app. I want to do this generally so e.g. in my main activity.
I know I can override onUserInteraction() or dispatchTouchEv...
Homocentric asked 22/3, 2021 at 15:25
9
Solved
I'm writing some unit tests and, because of the nature of this particular app, it's important that I get as high up the UI chain as possible. So, what I'd like to do is programmatically trigger a b...
Wilder asked 26/10, 2010 at 22:56
4
I am quite new to Android programming and Java (though I have some experience with C#, so that helps).
At this moment I'm goofing around with a couple of things to get to know how everything works...
Eighth asked 8/6, 2011 at 7:36
12
I have a scrollable list on a mobile device. They want people to be able to scroll the list via swiping, and also select a row by tapping.
The catch is combining the two. I don't want a row to be...
Trilly asked 15/8, 2011 at 19:8
2
Solved
I'm building an interface where I need to process touch events. In particular I would to be able to enable them only to a confined area in a fragment.
To better understand the problem, to respect t...
Vocalise asked 19/2, 2014 at 13:41
3
Issue:
I have a problem where in the whole application where click event is used. The app will be used on both mobile and web. I am using Angular 6.
Every time you click on a button or link on th...
Isosteric asked 4/9, 2018 at 17:29
2
Solved
I'm implementing a custom TextView and I want to do some action when the view is touched. I figured the onTouchEvent method would give me the full range of touches on the view without having to use...
Too asked 17/6, 2011 at 20:57
1 Next >
© 2022 - 2024 — McMap. All rights reserved.