6,299 questions
3
votes
1
answer
118
views
Expo react-native app on Android touch events not registered on samsung when screen magnification set to 1x
Description
Touch events are completely unresponsive in production builds on Samsung S23 Ultra running Android 15 when the Screen Magnification accessibility setting is set to 1x. The app renders ...
-1
votes
1
answer
44
views
touch screen by tslib does not work correctly on qt button
I have Lynx-9500 sls device which I did cross compile Qt5.12 library by it's toolchain. Qt cross compilation was ok with Tslib library, but when I create simple QWidget to test touch screen it does ...
550
votes
37
answers
690k
views
What's an optimal or efficient way to detect a 'touch screen' device using JavaScript?
I've written a jQuery plug-in that's for use on both desktop and mobile devices. I wondered if there is a way with JavaScript to detect if the device has touch screen capability. I'm using jquery-...
1
vote
1
answer
109
views
position of pointer on PointerMovedEvent in Avalonia UI changes only once
I've created a custom button in Avalonia UI. It is intended to be used as 'momentary' button (active on press, inactive on release). On pc/mouse environment everything works ok. But on touch device, ...
268
votes
19
answers
321k
views
How to remove/ignore :hover css style on touch devices
I want to ignore all :hover CSS declarations if a user visits our website via touch device. Because the :hover CSS does not make sense, and it can even be disturbing if a tablet triggers it on click/...
235
votes
31
answers
176k
views
How to prevent sticky hover effects for buttons on touch devices
I have created a carousel with a previous and a next button that are always visible. These buttons have a hover state, they turn blue. On touch devices, like iPad, the hover state is sticky, so the ...
283
votes
20
answers
230k
views
Prevent Android activity dialog from closing on outside touch
I have an activity that is using the Theme.Dialog style such that it is a floating window over another activity. However, when I click outside the dialog window (on the background activity), the ...
295
votes
17
answers
378k
views
How to add a touch event to a UIView?
How do I add a touch event to a UIView?
I try:
UIView *headerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, nextY)] autorelease];
[headerView addTarget:self ...
290
votes
8
answers
429k
views
Consider marking event handler as 'passive' to make the page more responsive
I am using hammer for dragging and it is getting choppy when loading other stuff, as this warning message is telling me.
Handling of 'touchstart' input event was delayed for X ms due to
main ...
202
votes
18
answers
233k
views
Disable double-tap "zoom" option in browser on touch devices
I want to disable the double-tap zoom functionality on specified elements in the browser (on touch devices), without disabling all the zoom functionality.
For example: One element can be tapped ...
184
votes
24
answers
78k
views
Detecting that the browser has no mouse and is touch-only
I'm developing a webapp (not a website with pages of interesting text) with a very different interface for touch (your finger hides the screen when you click) and mouse (relies heavily on hover ...
243
votes
11
answers
310k
views
Binding multiple events to a listener (without JQuery)?
While working with browser events, I've started incorporating Safari's touchEvents for mobile devices. I find that addEventListeners are stacking up with conditionals. This project can't use JQuery.
...
217
votes
13
answers
250k
views
android: move a view on touch move (ACTION_MOVE)
I'd like to do a simple control: a container with a view inside. If I touch the container and I move the finger, I want to move the view to follow my finger.
What kind of container (layout) should I ...
192
votes
14
answers
167k
views
Media query to detect if device is touchscreen
What is the safest way, using media queries, to make something happen when not on a touchscreen device? If there is no way, do you suggest using a JavaScript solution such as !window.Touch or ...
2
votes
0
answers
60
views
QPushButton::setAutoRepeat(true) not working with touch screen
I make a Qt5 C++ application and run this on Windows 10 with a touch screen.
I have a QPushButton that increments a counter. I have setAutoRepeat(true) on this button so that the user can avoid ...
-1
votes
1
answer
87
views
Restrict user touch events outside drawn bezierpath [duplicate]
I have created a view like this using XIB with having half of height assign to that view.
static func drawRightTriangle(targetView target: UIView, cornerRadius: CGFloat, borderView: UIView) {
...
140
votes
12
answers
197k
views
Disable scrolling when touch moving certain element
I have a page with a section to sketch a drawing in. But the touchmove events, at least the vertical ones, are also scrolling the page (which degrades the sketching experience) when using it on a ...
2
votes
0
answers
50
views
Disable touch shortcut menu pop-up from long presses
Excel 2021 used with touch screen. Windows 10. Long taps or double taps cause this horizontal pop-up bar to appear. I have disabled right click and double click through VBA but this is something ...
175
votes
13
answers
113k
views
iOS - forward all touches through a view
I have a view overlayed on top of many other views. I am only using the overaly to detect some number of touches on the screen, but other than that I don't want the view to stop the behavior of other ...
147
votes
5
answers
103k
views
Disable Blue Highlight when Touch/Press object with Cursor:Pointer
There is a blue highlight that appears whenever a Div that has the cursor:pointer property applied is touched in Chrome.
How can we get rid of it?
I have tried the following:
-webkit-touch-callout: ...
1
vote
0
answers
47
views
How to use Pynput to detect clicks in an iframe on a touch interface?
I've got a webapp with an iframe embedded in it, and have been using pynput as a way to detect the mouse inputs on this webapp. Trouble is, when using the touchscreen to click on the iframe it no ...
0
votes
1
answer
56
views
How do I prevent this code from sometimes ignoring my TouchesEnded handling?
I wrote a teensy app in Swift/SpriteKit/iOS for a button that turns a color when pressed.
It works fairly well except for one thing: If I touch the button in a certain fashion -- a quick half-swipe, ...
125
votes
21
answers
122k
views
Disable hover effects on mobile browsers
I'm writing a Web site that's meant to be used from both desktops and tablets. When it's being visited from a desktop, I want the clickable areas of the screen to light up with :hover effects (...
130
votes
15
answers
254k
views
How do I simulate a hover with a touch in touch enabled browsers?
With some HTML like this:
<p>Some Text</p>
Then some CSS like this:
p {
color:black;
}
p:hover {
color:red;
}
How can I allow a long touch on a touch enabled device to replicate ...
138
votes
4
answers
175k
views
Make element unclickable (click things behind it)
I have a fixed image that overlays a page when the user is in the act of scrolling a touch screen (mobile).
I want to make that image "unclickable" or "inactive" or whatever, so that if a user ...
0
votes
0
answers
33
views
ERROR in Behavior DragHandler and PinchHander QML
I launched the Qt example "PointerHandlers" map.qml
And I found that after I performed the pinch movement and released one finger, the square for some reason changes its position
You will ...
0
votes
1
answer
343
views
Communitytoolkit.maui.behavior blocking child events/elements
Below is my xaml page. You will see that I have a Border control which I added a Touch Behavior to. This works...but the button inside the border control has a button click event which never triggers. ...
124
votes
6
answers
147k
views
Draw in Canvas by finger, Android
I need to build a project for drawing on canvas by fingers.
How to get the touch event and motion event of my finger and then draw?
39
votes
16
answers
75k
views
Show touch keyboard (TabTip.exe) in Windows 10 Anniversary edition
In Windows 8 and Windows 10 before Anniversary update it was possible to show touch keyboard by starting
C:\Program Files\Common Files\microsoft shared\ink\TabTip.exe
It no longer works in Windows ...
119
votes
3
answers
111k
views
jQuery UI slider Touch & Drag/Drop support on Mobile devices
I have already styled and implemented jQuery UI slider into a project. Though it's responsive, the slider does not respond to being touched and dragged. Instead, you have to touch where you want the ...
0
votes
0
answers
120
views
Error use touch scroll on display for Raspberry pi 4
I'm using a raspberry pi 4 with display. I have enabled touch but I can't use the scroll to scroll.
I tried to add this file with this information but I continue to have this problem despite having ...
1
vote
1
answer
87
views
Screen bounds don't align with InjectSyntheticPointerInput
I'm working on an app that takes touches/pen input from an Android device and sends them to PC. The overwhelming majority of it is done but now I'm working on things like monitor switching and other ...
130
votes
5
answers
80k
views
jquery-ui sortable | How to get it work on iPad/touchdevices?
How do I get the jQuery-UI sortable feature working on iPad and other touch devices?
http://jqueryui.com/demos/sortable/
I tried to using event.preventDefault();, event.cancelBubble=true;, and event....
0
votes
1
answer
375
views
How can I disable Windows system-wide three/four-finger touch gestures in a Win32 application? [closed]
I'm working at a company which develops an application which can be used for drawing with multiple touch inputs at once. The problem is, when you swipe with three or four fingers upward or downward, ...
65
votes
7
answers
69k
views
Media query for devices supporting hover
I'd like to provide separate behaviour for browsers supporting hover (e.g. desktop browsers) and ones which don't (e.g. touchscreen devices). Specifically I want to declare a hover state on browsers ...
72
votes
11
answers
97k
views
Android How to draw a smooth line following your finger
http://marakana.com/tutorials/android/2d-graphics-example.html
I am using this example below. But when I move my fingers too fast across the screen the line turns to individual dots.
I am not sure ...
0
votes
2
answers
121
views
How can I create transparent buttons that react to touches but pass drag gestures to the views below?
I have a fulscreen SpriteKit scene view, that handles pan gestures within itself.
Over it, I have overlaid native SwiftUI views with OnTapGesture, which must react to them being touched but should not ...
0
votes
0
answers
14
views
jQuery's native slider does not actually slide while using mobile phone [duplicate]
First off, here's my code:
$("#slider-range").slider({
range: true,
min: 0,
max: 500,
values: [75, 300],
slide: function(event, ui) {
$("#amount").val("$" + ui.values[0] +
" - $...
2
votes
1
answer
2k
views
Screen Touch control to move Cinemachine Camera in Unity
I'm making third person shooter game in unity for android and this is my first time working on touch controls so with the help of youtube videos I was able to make virtual joystick and button with ...
5
votes
2
answers
4k
views
is there a touch that can create parent directories like mkdir -p?
I have the following two functions defined in my .zshrc
newdir(){ # make a new dir and cd into it
if [ $# != 1 ]; then
printf "\nUsage: newdir <dir> \n"
...
50
votes
17
answers
85k
views
How to cancel an Dialog themed like Activity when touched outside the window?
I have an activity with a Dialog theme and I would like to close (finish) this activity when someone touches the screen anywhere outside this activity's window ? How can I do this ?
0
votes
1
answer
105
views
touchscreen raspberry pi phantom touch (reset fixes)
I am working on a kivy project to create some control panel for a ship (toggle lights etc). One of the screens I am also working on is a navigation using the kivy_garden.mapview. This is the screen ...
2
votes
2
answers
1k
views
Check if click was triggered by touch in modern browsers
This question is an update to this one, but for modern browsers. (Unfortunately the answers here are outdated and/or not in vanilla JavaScript). Essentially I want to perform a simple test to detect ...
0
votes
1
answer
40
views
Draggable slider for touch devices
var reachedLast = false;
var reachedFirst = false;
jQuery("#gbar").draggable({
axis: "x",
containment: "parent",
drag: function (event, ui) {
var ...
2
votes
0
answers
77
views
Button stuck in hovered state on touch in WPF Touch Application modal window
I'm developing a WPF application designed for touch screens. There is a modal window with button "New" on it. The button has 3 states:
Normal:
Hovered (orange background):
Pressed (orange ...
76
votes
11
answers
83k
views
Google Maps Android API v2 - detect touch on map
I can't find an example on how to intercept the map touch on the new Google Maps API v2.
I need to know when the user touches the map in order to stop a thread (the centering of the map around my ...
34
votes
16
answers
124k
views
Fix CSS hover on iPhone/iPad/iPod
I want to fix the hover effect on iOS ( change to touch event ) but I dont have any idea .
Let me explain this .
You have a text in your page :
<div class="mm">hello world</div>
With ...
1
vote
0
answers
38
views
WPF application with Touch Not Working Properly
I create application for Windows touch screen, but it's not working properly beacuse when i use mouse click everything works ok but when i use touch sometimes application is working but many times ...
2
votes
1
answer
1k
views
Google Maps Javascript API draggable markers don't trigger neither "click" nor "gmp-click" event on touch devices
As I have written in the title, I am dealing with Google Maps Javascript API.
In particular I am using the last released Advanced Markers for their customization capabilities.
These elements can be ...
0
votes
0
answers
35
views
Android annoying Widget touch down press effect
I have a one plus Nord 4 Android phone with oxygenOS 14.1
I can't seem to find a way to remove the touch animation effect from widgets when interacting with them.
I managed to do on my old phone in ...