Questions tagged [touch-event]
An event that is triggered when a user 'touches' a GUI component
1,954
questions
0
votes
0
answers
8
views
TouchScreen : How to get max touch points programmatically
It seems touchscreen comes with varying Touch Point capabilities i.e. 5 Touch Points, 10 Touch Points or 20 Touch Points.
Is there a way to get supported Touch Points programmatically instead of hard ...
0
votes
0
answers
14
views
TFT_eSPI Touch values out of whack. Bad hardware?
I have the HiLetGo TFT touchscreen display:
And I'm messing around with the Bodner SPI library for the 9341 and touch events:
https://github.com/Bodmer/TFT_eSPI
I'm also using a Raspberry Pico which ...
-5
votes
1
answer
69
views
Do Javascript have touch.event? [closed]
object.onclick = function(e) {
e = e || window.event;
var target = e.target || e.srcElement;
alert(target);
}
It have window.event, does it have touch.event for smartphones like this one down ...
0
votes
0
answers
92
views
Keeping image centred during drag - touch events
A continuation from a previous unanswered post in which I wanted to centre an image to the touch that is dragging it. For example if the user touches the top right corner of the image, the image will ...
-1
votes
0
answers
14
views
Creating a React.js chat app; on iOS, clicking the chatbox shifts the header with the keyboard. Any solution for ios default browser behavior?
I'm developing a React.js web chat app and facing issues on iOS where clicking the chatbox triggers the keyboard, causing the header to move up and become hidden but it works fine in android. Any ...
-1
votes
2
answers
29
views
touchstart event missing information on server
I am trying to implement drag and drop functionality using javscript and following code is working fine in my local but, it is not working in the server. Debug information is given below:
$(document)....
0
votes
1
answer
22
views
Relation between mouse, touch and pointer events in Javascript
Trying to get event handling correct for a web app that should work equally well with mouse and touch events, I started using pointer events where mouse and touch handling should be basically the same....
0
votes
0
answers
23
views
Multi touch support on a multi window Electron app
I have an Electron app that generate 4 different Browser Window:
// Create number of window specified in windowsNumber
for (let index = 0; index < windowsNumber; index++) {
//Create screen
...
0
votes
1
answer
41
views
How do I iterate over all touch event properties in the TouchList for a touch event in JavaScript?
I am trying to understand touch events, but I cannot get anything to work.
I have a very simple page to test this:
HTML:
<div id="TOUCHME"> TOUCH ME </div>
<div id="...
0
votes
1
answer
45
views
How do I smoothly do drags or mobile swipe? Time Picker Rect Next Js 13 App Dir
So I decided to try and do my own time picker component. Why? Well there isn't a single UI library out there that the user can swipe up or down to choose just hour or minutes or PM/AM. I don't need ...
0
votes
0
answers
29
views
I am trying to make an extension that allows me to scroll through chrome tabs. My background.js is working fine but my content.js isn't
For my content.js, I am using the 'touchmove' event to scroll through the tabs by swiping 2 fingers and it isn't working. I have used the 'wheel' event and it worked but it can only switch tabs one at ...
2
votes
0
answers
100
views
How do I enable these two gesture features in Trading View library like in their app?
I want to enable these two features in the Trading view library, I'm integrating it in my Android project.
I want to show that box with (price information, date etc) when you hold down your finger on ...
0
votes
1
answer
18
views
How to combine click and taphold into single call
I have a problem in that the JQuery click event handler is not triggered for a long touch press (Chromium browser kiosk application on a Raspberry Pi4 with a touch screen). It can be the case that ...
0
votes
1
answer
44
views
Floating action button in Android on all the screens
I am a newbie is android , As a part of my project, I need to create a floating action button which is seen all screen all overs the device ,and on click of that button should disable the screen ...
1
vote
0
answers
196
views
Jetpack Compose: do not capture all touch events after touch down
Suppose in Jetpack Compose a row of 5 button. For my purpose I would like a user to be able to touch down on the first button, slide the finger along the row buttons, lift up from another button and ...
0
votes
0
answers
20
views
ACTION_POINTER_DOWN not propagating to sibling view
In my layout I have a FrameLayout that contains a FrameLayout(buttonContainer) and a Webview(mywebView) over top of each other. The buttonContainer also contains Buttons but for their onTouch event I ...
2
votes
1
answer
92
views
SwiftUI inactivity timer
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 ...
0
votes
1
answer
37
views
disable child view touches when parent disabled
I am creating a clickable custom view to replace android.widget.Switch(Switch), using onDraw instead of additional Drawable. When I use Switch previously, if parent is disabled, the Switch is also not ...
0
votes
0
answers
16
views
WPF showdialog window After that accidental touch and firing event
I have a problem in my WPF application. We have a parent wpf page and we start a dialog via showDialog method then after this dialog window closed, if we touch any point regardless that it is an item ...
0
votes
0
answers
23
views
Is there way to implement a pinch-off zoom functionality with touch event in android?
I have a load static image in image-view layout & I want to implement pinch-off zoom functionality with touch-event for particular image?
In google map having similar kind of functionality and In ...
0
votes
0
answers
19
views
How to correct intercept scrolling gesture in child of horizontal RecyclerView
One part of my main screen in Android App is horizontal recycler view with 'products' elements. In each 'Product Item' view I have another view with several photos. And I want to user can scroll this ...
0
votes
1
answer
110
views
How Can i detect Touch Screen In c#
I want to create a web application using Blazor that consists of two lists, each containing different buttons. I would like to hide the buttons when it is touch screen and make it possible for users ...
0
votes
1
answer
126
views
Webpage with embedded flutter app does not handle touch after flutter iframe gets touched
We have a React web application that shows an iframe on the right side if opened. This iframe is filled with a flutter app. If the iframe is opened and the user touches inside the flutter app, then ...
0
votes
0
answers
45
views
How to detect touch screen devices and prevent both click and touchstart events from being triggered?
The code below is for a drum machine project.
It's working perfectly on desktop click events are working perfectly, however on touch screen devices (testing on my Iphone) I am getting no sound.
When I ...
1
vote
0
answers
91
views
Why mobile javascript touch events always have .rotationAngle == 0 for me?
I wanted to use .rotationAngle property in my code, but for some reason it is always 0 for me. https://developer.mozilla.org/en-US/docs/Web/API/Touch/rotationAngle . Is this some sort of bug, or this ...
0
votes
0
answers
33
views
How to track finger pinch zoom scale and rotation angle on screen using javascript on mobile devices?
I am using the pointer events to track the pinch zoom and rotation from the mobile device.
Using the events roation and scale property but not getting the values from the events.
Here is the code i am ...
0
votes
0
answers
26
views
Problem with touch events-trying to centre the image to touch
So the problem I am facing is that I want to centre my image to the touch that will drag it.
e.g.
If the user touches the top right corner of the image, the image will automatically move so its centre ...
1
vote
2
answers
101
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
42
views
How to do programmatically Tap/Touch in React Native?
I have a pop up which is gone once I tap/touch anywhere on the screen. I want to do this programmatically tap/touch so that a human touch is not required.
what i need to add / change in my code?
My ...
0
votes
1
answer
266
views
Alternative to xamarin community toolkit toucheffect maui
does anybody knows if there is a workaround for using long touch with DotNet MAUI?
In my legacy app build with Xamarin, i was using xct:TouchEffect.LongPressCommand.
As far as i know there is a wip in ...
0
votes
2
answers
44
views
How to get the location of TouchEvent in Javascript
I am trying to add touch compatibility to my js game and need to know the location of the touch event on window object, With clicks you get e.x,e.y but there is no such property for touch start.
I ...
0
votes
0
answers
40
views
dispatchTouchEvent() is not working in case of dialog and menu
I am trying to perform programmatically click using view.
I am able to achieve this on normal UI if it is a button or a text or a list.
Here is my code:
element.GetView().getRootView()....
0
votes
1
answer
201
views
How to 'click' on multiple elements with one drag gesture in Jetpack Compose?
I have a composable called SequencerGrid which contains a row of composables called ToggleStep. Each ToggleStep is effectively a custom button; a Box with a .clickable modifier. When each ToggleStep ...
0
votes
0
answers
47
views
Android Java: Is there a way to programmatically launch a touch event to just the screen itself and not a view within my own app?
Suppose that I want to launch an activity from my new Android app like so:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
0
votes
0
answers
21
views
Dispatch Touch Event Automatically in Android
Can you give me a code example of how to dispatch a touch event without any user interaction or gesture detection like automatically? The exact dispatch touch code and motion event codes without ...
0
votes
1
answer
684
views
How can I get a touch event in .net Maui?
I can not find a touch event handler for my .net maui application. The built-in gesture recognizer has a TapGesture. Google searches for this returned nothing. I asked ChatGPT which recommended using ...
0
votes
0
answers
34
views
Detecting ontouchstart instantly
I'm making a platformer HTML game and have a problem that the player doesn't instantly move after I trigger the touch event. When I start pressing the button I have to wait 1-2 seconds till the player ...
1
vote
0
answers
50
views
How to disable context menu on long finger press in a webapp, and stil receive all the pointer events?
In a webapp project, I need a button to respond accurately to press and release events, from any pointing device, whether it comes from the mouse, the touchscreen or any means of pointing. It should ...
0
votes
2
answers
163
views
How to make draggable element follow cursor on touchmove coords with InteractJs
I have one draggable element inside container and restricted to its bounds. I use InteractJs to implement this. Draggable element is hidden by default and becomes visible as touch starts.
However I ...
1
vote
2
answers
72
views
pyscript @when decorator - js conversion
Trying to add some advanced interaction to my input field by making mouse motion scrub the value.
but having difficulty converting js to python within events.
any guidance ?
I have this:
@when("...
0
votes
0
answers
48
views
Simulate Touch Gesture on Phone Screen in Sketchware Pro App
Can you make a tutorial on how to simulate a touch event on the phone screen by pressing a button on a floating window or widget or action button on the phone home screen but dont let go of the touch ...
1
vote
0
answers
36
views
WPF C# Touch doesn't work until the 11th touch in Datagrid
I've made an application, for Point Of Sale. In this App, I need to select an item from the item list which I showed in Datagrid. But the problem is touch is not recognized until the 11th touch. using ...
1
vote
1
answer
35
views
Doesn't mousePressedOver() detect touches from mobile too, If doesn't what function to use instead?
This is the line I'm facing with, I want to detect mouse click when being used in PC (which is working completey fine) and to detect clicks when used in mobile too.
if (keyDown("left") || ...
1
vote
2
answers
135
views
Javascript Listener for holding down/touch down on element
I'm working on a little app, where I go left while holding on a text/button.
HTML:
<h1 style="color:white;" id="goLeft">Left</h1>
JS:
document.querySelector('#goLeft')....
0
votes
0
answers
27
views
Driver (filter) for avoiding loss of mouse focus / capture with touch screen operation
Presently we are exploring a particular case for one of our product, where there will be two operators one as controller or administrator other as operator or user.
Administrator will be sitting on ...
1
vote
1
answer
81
views
React Native how to make an action when a user first puts their finger on a screen and then (without lifting it) goes over a pressable which activates
I am building a React Native app and I am trying to make it so that when a user can slide their finger from a place not on the pressable to the pressable without lifting their finger and when the ...
0
votes
0
answers
27
views
Resizing a CAShape Layer with the touch point or UIPanGestureRecognizer
I have drawn a CAShapeLayer using UIBezierPath with touch on the ImageView with that I'm able to draw of any shape of CAShapeLayer over the specified ImageView.
Image for reference that I'm able to ...
0
votes
0
answers
15
views
draggable overlay on touch screen in google map api [duplicate]
I used this gmap api code for building overlay div with image: http://jsfiddle.net/doktormolle/QRuW8/. it works for desktop with mouse, but not working with touch event. please, help me.
I tried to do ...
0
votes
1
answer
198
views
Detect Touch Gesture "Button is pressed" in Delphi
In my Delphi application I have a button which runs a motor as long as the button is pressed.
Using a mouse this works perfectly. ✅
Now I have a touch display and the pressing and holding of this ...
1
vote
0
answers
36
views
Can't make a good way to find number of active touch points on the document using a function
I'm trying to get this function to show the number of touchpoints on the screen, but I need it to be instant and accurate. This code works, but when I touch the screen fast it sometimes resolves the &...