Questions tagged [touchmove]
140 questions
1
vote
0 answers
Stabilize touch events coordinates on touchmove
I'm working on a small application that allows users to draw freehand in 3d with three.js (the result is somewhat similar to Blender's grease pencil). The application works in any browser but I'm struggling with my main target platform: the iPad…

zzot
- 31
- 4
1
vote
0 answers
Click links and website pages on mobile devices using touchmove and touchend
hello i am a new student studying programmer. I was given a question from my lecturer to make a script with the question command: "click the link to another page in a paragraph when the phone screen is touched or swiped". I am very grateful for all…

anderson026
- 11
- 1
1
vote
0 answers
Cannot capture touchmove when started on element that I remove
I'm coding a calendar in JavaScript for my website.
I've added a feature with mouse events that allow user to click and slide to find expect date. It works well.
My problem is when I try to do it on smartphone. I use touch start/move/end
in place…

user2402622
- 93
- 1
- 6
1
vote
0 answers
Touchmove with preventDefault() Not Disabling Body from Scrolling on iOS
What would be causing the script below to not prevent the body from scrolling on iOS when prompted on click? Is there something I've missed, in terms of implementing this?
NOTE: This is not a working snippet, just condensed examples of the script…

nrweb
- 211
- 3
- 15
1
vote
1 answer
how can I record the touching trail (x and y coordinations) when I touch and move on screen of the phone?
I'm using the ionic2 to programing a mobile app.I want to record the whole trail when the finger touch and move on the screeen.first,I used the
document.addEventListener('touchmove',touch,false);
but when the finger touch and move on the…

pies
- 61
- 1
- 1
- 5
1
vote
2 answers
"touchmove" event is not triggered in Microsoft Edge
I need to detect an element when it is dragged based on the clientx and clienty position of the touchmove event. In Chrome, the touchmove event is recognized and position is returned properly whereas the touchmove event is not recognized in…

keerthana
- 117
- 10
1
vote
1 answer
Mousemove for mobile
I have a website with a splitscreen slider that I want to make mobile friendly. I have an addeventlistener 'mousemove' which allows the slider to go back and forth, but I also want to make it touch activated as well.
I tried replacing the…
user7311741
1
vote
0 answers
jQuery touchmove event only working on scrolled up
I want to load an mpu adslot when they come it comes into view. It currently works fine on desktop but the code which handles mobile devices is not behaving as it should.
When the adslot is partially visible on the page the ad should be shown.…

richelliot
- 588
- 2
- 10
- 30
1
vote
0 answers
touch scrolling on mobile not working modernizr.js used
For this code in mobile if i touch and move body it does not move but if touch header or footer and move it scrolls could any one please help...
But in my(iphone) or some mobiles it works it does not work in some other mobiles
You can check by using…

user3569554
- 11
- 2
1
vote
1 answer
Cordova - 'touchmove' Event doesn't fire right away
I have this simple code:
document.addEventListener('touchmove', onDocumentTouchMove, false);
function onDocumentTouchMove(event)
{
for(var i = 0; i < event.touches.length; i++)
{
clickX[i] = event.touches[i].pageX;
clickY[i]…

tery.blargh
- 405
- 1
- 6
- 23
1
vote
1 answer
How to prevent default browser scrolling an touchmove combined with a throttled function
I need to trigger a function when a finger moves on a touch device.
When you touchmove, the default browser scrolling is disabled with e.preventDefault();
See first section on JsFiddle.
In order to reduce the traffic, this function is only called…

wurstbrotrest
- 329
- 1
- 7
- 17
1
vote
3 answers
SVG angle rotation by mousemove/touchmove bug
I want to rotate svg circulars by mousemove/touchmove with one point finger.
I tried many js scripts (for ex. Touchy Wheel Demo and Rotate Dial Demo) and their examples works perfect, but when I try my example I always see two bugs:
Rotation works…

skywind
- 892
- 6
- 22
- 44
1
vote
1 answer
jquery- change element background color by id using elementFromPoint
I have a grid, I want to imitate the drawing function that was made in
this link, the thing is that the functions on that code do not work on mobile devices.
I managed to get the id if the square I'm touchmove through in the console.
for some…

DavSev
- 1,005
- 4
- 22
- 47
1
vote
1 answer
HTML5 touchmove will always get interrupted on Android
(not tested on iOS / Windows phone)
I'm building an HTML5 game for mobile and want to use the user's touch input as a joystick/controler but every touchmove scripts I found out there seem to break after a prolonged touchmove. I've only properly…

user3560379
- 11
- 1
1
vote
2 answers
How to Select text on mobile web browser by moving touch on screen using javascript?
I am trying to select text from mobile web browser on touch based mobile by moving touch on screen using javascript. I don't want to use long touch to select text. I am trying to get selected text just like browser on desktop not like mobile…

user3340927
- 25
- 1
- 5