Questions tagged [touchmove]
140 questions
3
votes
1 answer
Javascript touchmove event not working after event.target moved in DOM in touchstart
I have several svg use elements within an svg element, with event handlers for touchstart/move/end attached to the svg element. When a user touches the svg use element on the screen and moves their finger around, the element moves around the screen…

P. Mattione
- 131
- 4
3
votes
0 answers
Vue2 Tocuh Events Ignored attempt to cancel a touchmove event error when swiping
I'm using the vue2-touch-events plugin to create some "native like" swiping behaviour for a Nuxt JS hybrid app built with Cordova. I've implemented an element (positioned absolutely) over the majority of the screen that once swiped on the $router…

Ryan H
- 2,620
- 4
- 37
- 109
3
votes
0 answers
iOS 12 safari can not prevent pinch scale with "touchmove" eventlistener when scrolling
I add this code
document.addEventListener('touchmove', function(event) {
if (event.touches.length > 1) {
event.preventDefault();
event.stopPropagation();
}
},
{
passive: false
});
It worked when you don't move your page.…

mania_U
- 63
- 4
3
votes
0 answers
(touchmove) with two fingers fires event only once
The touchmove event detects every slide along the screen, but when I use two fingers and do pinch gesture it fires only once. So when I try to zoom something, It only zooms at each gesture, not continuous. Is this the normal behaviour?
It is Angular…

AlvaroCryptogram
- 398
- 3
- 16
3
votes
2 answers
Drawing line on touches moved in COCOS2D
I'm developing a game for iPhone using COCOS2D.
In that, I need to draw a line when user drag his finger from a point to another. As far as my knowledge is concern I need to do this in Touches Moved method from where I can get the points.
But I…

Shakti
- 1,889
- 4
- 18
- 29
3
votes
0 answers
touchmove event not firing in phonegap app on chrome
I have been struggling with this for a few days now and while there are several related questions on this site, none of them have pinpointed the answer to me.
My goal is to implement drawing on a canvas while in a phonegap application. My…

Dallas Caley
- 5,367
- 6
- 40
- 69
3
votes
0 answers
Javascript TouchMove Delay before event trigger
I'm trying to get constant coordinates of where my touch is, unfortunately when I run application I noticed there is a pixel threshold or something that needs to be surpassed before 'touchmove' is activated. Is there a way to change this threshold?…

JimmyBDB
- 33
- 5
3
votes
2 answers
Replace mousemove with touchmove event
My program recognizes the mousemove event. What I would like to do is make my program work for mobile.
That is why I would like to transform the mousemove event to a touchmove event.
My code is like this so far:
var…

Dimitra Micha
- 2,089
- 8
- 27
- 31
3
votes
2 answers
Jquery - best way to detect mobile browser? (mousedown/touchmove)
I have some Jquery scroller.
For desktop browsers I use this construction:
holder.bind('mousedown.rotate', function(e){
//some actions
doc.bind('mousemove.dragrotate', function(e){
//some actions
});
…

Kotanet
- 573
- 1
- 8
- 26
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
0 answers
TouchMove events stopped working in chrome 72 and latest webkit
In recent Chrome (Desktop) and Webkit (Android) update touchmove events stopped working. The bug is very finicky, for example it only breaks if I draw something in canvas and canvas height is at least 220px. If height is 219px or if I don't draw on…

asdjfiasd
- 1,572
- 15
- 28
2
votes
1 answer
touchmove events stop after replacing innerHTML
I have a webpage that tracks touchmove events allowing the user to drag an element around the screen - works fine.
I dynamically replace html within the moving element while the user is moving it - replacing html works fine.
The issue is if the user…

devlop
- 1,168
- 1
- 8
- 19
2
votes
1 answer
Background scrolling behind position:fixed; on iOS
So here's my problem:
Add a header bar of 60px height with a popup menu toggler
Add enough content on the page to scroll When toggle popup menu - add
overflow-y: hidden to html and/or body and position: fixed to the
popup.
Idea is that when I…

Onotoley
- 23
- 1
- 4
2
votes
2 answers
scroll can't be default prevented on touchmove event on iOS10
On Safari 10, by defining a simple listener that prevents default a touchmove event within a scrollable element, the event is not default prevented as it does with Safari 9 and less (it also does in all major browsers).
This is reproducible here: …

VPusher
- 376
- 1
- 4
- 11
2
votes
0 answers
Getting Waypoints Inview to work when scrolling on mobile
I am using Waypoints Inview to detect when I scroll into a certain section of my website grab the background colour of the div in view check what colour it is then I'm outputting a class onto my nav to change the colour.
It works wonderfully on…

Adam Ascroft
- 21
- 2