Questions tagged [touch-event]

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

Filter by
Sorted by
Tagged with
-5 votes
1 answer
62 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 ...
Funny's user avatar
  • 1
0 votes
0 answers
81 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 ...
Undefined's user avatar
-1 votes
0 answers
12 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 ...
KSHITISH DIXIT's user avatar
-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)....
Cool's user avatar
  • 348
0 votes
1 answer
18 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....
Harald's user avatar
  • 4,645
0 votes
0 answers
21 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 ...
marcotw's user avatar
  • 113
0 votes
1 answer
39 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="...
Brian's user avatar
  • 1,756
0 votes
1 answer
41 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 ...
Inzen's user avatar
  • 23
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 ...
ralphm's user avatar
  • 1
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 ...
Saul's user avatar
  • 61
0 votes
1 answer
17 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 ...
ejectamenta's user avatar
  • 1,047
0 votes
1 answer
39 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 ...
Apoorva A's user avatar
1 vote
0 answers
174 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 ...
Maarten's user avatar
  • 6,994
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 ...
Jason H's user avatar
2 votes
1 answer
82 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 ...
Voyteck's user avatar
  • 378
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 ...
Ayaka_Ago's user avatar
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 ...
isasin's user avatar
  • 1
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 ...
harsuu's user avatar
  • 36
0 votes
0 answers
18 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 ...
alena_fox_spb's user avatar
0 votes
1 answer
101 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 ...
Sara Barzani's user avatar
0 votes
1 answer
108 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 ...
Eadwine's user avatar
  • 67
0 votes
0 answers
38 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 ...
rafflewinner64's user avatar
1 vote
0 answers
90 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 ...
aiyo4930aiyo's user avatar
0 votes
0 answers
31 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 ...
Pragyat Srivastava's user avatar
0 votes
0 answers
24 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 ...
user avatar
1 vote
2 answers
97 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 ...
Federico Tomasi's user avatar
0 votes
0 answers
40 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 ...
prabal taskmanager2's user avatar
0 votes
1 answer
241 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 ...
Simon Mardiné's user avatar
0 votes
2 answers
42 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 ...
Javascript-GameDev's user avatar
0 votes
0 answers
39 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()....
kishan verma's user avatar
0 votes
1 answer
189 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 ...
Christian Sharrier's user avatar
0 votes
0 answers
39 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); ...
Rikudou's user avatar
  • 163
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 ...
jakesk34's user avatar
0 votes
1 answer
619 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 ...
infinitezero's user avatar
  • 1,769
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 ...
samuraiskiy's user avatar
1 vote
0 answers
43 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 ...
DavGin's user avatar
  • 8,265
0 votes
2 answers
157 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 ...
moogeek's user avatar
  • 407
1 vote
2 answers
70 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("...
Neon22's user avatar
  • 590
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 ...
jakesk34's user avatar
1 vote
0 answers
33 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 ...
Shabeer's user avatar
  • 25
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") || ...
Drew's user avatar
  • 11
1 vote
2 answers
125 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')....
nameless's user avatar
  • 1,483
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 ...
CpAmolVaidya's user avatar
1 vote
1 answer
79 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 ...
Itay Lador's user avatar
0 votes
0 answers
26 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 ...
Dhanush Srinivasan's user avatar
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 ...
Roman B.'s user avatar
0 votes
1 answer
190 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 ...
Michael Hutter's user avatar
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 &...
Jax's user avatar
  • 11
1 vote
0 answers
55 views

How can i replace keyboard events with touch screen events?

I have some events and i want change them on touch events when i use phone or something with sensor display document.addEventListener('keydown', (e) => { moveCheck(oldLocation); switch (e.key) ...
Vadym Prydatok's user avatar
0 votes
1 answer
100 views

OnTouchListener's onTouch false return value does not prevent onTouchEvent from being called. Why does everyone say it does?

The documentaion isn't very clear about it https://developer.android.com/reference/android/view/View.OnTouchListener either, nor are the SO threads any help SO Answer: If you return false the event ...
xidsyed's user avatar

1
2 3 4 5
40