Questions tagged [touchstart]

158 questions
2
votes
1 answer

Detect when touchmove event is out of target and restart it

I'm building Facebook like reactions system in HTML/CSS/JS. I'm trying to achieve simmilar touch effect as it is on Facebook for mobile users. So I want to allow users to select reaction by sliding the finger between reactions and react when they…
Jon Code
  • 111
  • 8
2
votes
2 answers

Flutter Webview - trapping touchstart events on Android

This issue posted on Github seems to suggest that touch events are deliberately suppressed in the Android implementation ostensibly to enable the detection of longpresses for the purposes of copy/paste. My own application absolutely needs to be…
DroidOS
  • 8,530
  • 16
  • 99
  • 171
2
votes
0 answers

touchstart, touchmove, touchend fire at the same time at tap up bug ios safari

I recently stumble on a bug in safari ios 13 but I think this happens in ios 12 as well. I have registred on an element a touchstart, touchmove and touchend event but they all fire when I tap up the screen, it makes no sense. Even if I register only…
2
votes
1 answer

Electron: always returns ontouchstart = true

I'm currently working on a web application with Electron. If I open the app in the normal Chrome browser it works as expected: click as click, touch as touch. But if I package it with electron it does not work right - it always returns touchstart =…
2
votes
1 answer

Is it possible to simulate isTrusted=true

I want to be able to simulate an isTrusted=true when I call a touchStart event. Is there any library or workaround of any sort to make this possible? Here is the output when I run the touchStart programmatically vs. when I actually call the…
MGames
  • 1,171
  • 2
  • 13
  • 24
2
votes
0 answers

IOS Never removes event handler no matter what

I must be doing it wrong because even though it works on IE9+, Edge, ff, chrome, and android it doesn't work on IOS. This code, on IOS, will just keep on a runnin'. Is there a way to fix this? function handleeeee() { alert("HANDL-O"); …
user875234
  • 2,399
  • 7
  • 31
  • 49
2
votes
0 answers

How to attach multiple Event Listeners to the same button in vanilla JavaScript?

Looking for the best way to have two events for same button click (vanilla javascript only please), first one should happen on touchstart the other one on the TransitionEnd. Is this would be correct / best way to do…
2
votes
4 answers

Change checkbox toggle function from click to touchstart

I am developing a cordova app. Because of the 300ms delay with the click event I don't want to use that. How do I change the event a element listens to for toggeling it's checkmark from click to e.g. touchstart? The closest I…
David Schumann
  • 13,380
  • 9
  • 75
  • 96
2
votes
0 answers

ios javascript touchstart event not firing

I have a div that's absolute positioned with it's parent relative positioned like so:
.panoramic-go-right { background-color: blue; height: 100px; width: 100px; margin-top: -50px; position:…
Chris Johnson
  • 133
  • 1
  • 1
  • 7
2
votes
0 answers

jQuery function not running without .html() inside

I'm trying to make a phone app with phonegap, and want to make a menu I can drag in from the left. This code is working as I want it to (at this stage), but if I remove the line $("#myElement").html(changePos); from the touchmove function, it stops…
2
votes
0 answers

Workaround for a premature touchcancel event on Android Browser

I'm trying to modify a jquery code for a website-based dropdown menu. Specifically I am working on a workaround for a premature touchcancel event being fired on Android Browser build 4.4.2 Samsung Galaxy S4. Here's the code I'm trying to work…
user3839044
  • 235
  • 1
  • 6
  • 22
2
votes
0 answers

Jquery, ipad(touch device) select multiple items

suppose we have a table and users may select more than one row at time, i can do that on desktop browsers with but it fails with touch devices (ipad), i tried with touchstart, i can get the starting…
benchpresser
  • 2,171
  • 2
  • 23
  • 41
2
votes
1 answer

Detecting touchstart while detecting touchmove

I've been plugging away at a project recently and up until now I've been using chromes debugger mobile emulator. This means I've been able to simulate touches and dragging behaviors with my mouse. Unfortunately because of just having one mouse I…
2
votes
2 answers

Meteor: Whole page refreshing only on mobile when navigating to new route w/ iron-router

My meteor app works as expected on the desktop, but has a slow mobile experience due to unnecessary total page refresh when changing routes. I have tested my application on google dev tools using the "emulate touch screen" option and on a Galaxy S4…
Zleman1593
  • 41
  • 3
2
votes
1 answer

Can I make the EmberJS link-to helper use the touchStart event instead of click?

The title pretty much sums up my question. The reason is, I'm building an Ember app in PhoneGap, and there is a very slight delay on each click event. The touchStart event is more recommended. I would prefer to be able to define a separate helper…
Jared
  • 2,006
  • 4
  • 23
  • 43
1 2
3
10 11