Questions tagged [touchstart]
158 questions
0
votes
1 answer
button in webapp on iOS needs to be 'pressed' instead of 'touched'
I have some simple buttons in a webapp that open some map layers when clicked.
They work as expected on all modern desktop browsers an on Androids, but on iOS the buttons need to be really pressed down, instead of just touched....
The click/touch…

JasonBK
- 539
- 3
- 12
- 37
0
votes
3 answers
On mobile, how can I keep an orientation change from breaking Jquery touchstart/touchend?
I have a small sample app here: http://codepen.io/DouglasGlover/full/OPpMaV/
This is a mobile-only experience (though it technically functions on desktop as well). Only concerned about mobile here.
The intended behavior is that a user touches their…

Douglas
- 705
- 3
- 11
- 26
0
votes
1 answer
jQuery trigger function when mousedown or touchend event happen outside selector area
Scenario: user clicks on a element, then drags it. Dragging ends elsewhere though. I noticed that when this happens, if I listen to the element that's being dragged, it won't trigger anything unless the cursor is released on the same element when…

unfulvio
- 826
- 3
- 19
- 34
0
votes
2 answers
Why tap event is suppressed by touchstart event?
I have this code:
$('.selector').on({
touchstart: function (e) {
e.preventDefault();
alert(3);
e.stopPropagation();
},
tap: function (e) {
e.preventDefault();
alert(4);
…

bogdan.rusu
- 901
- 4
- 21
- 41
0
votes
1 answer
touchstart event click on an other element
when i use a touchstart event to show a div on my phonegap app, thats open the div but also click on a button into this div.
Do you have any idea to prevent the button to be triggered ?
0
votes
1 answer
JavaScript OnClick not working on iOS
I have developed code which detects when a user clicks on a cell in a table, and then uses the bgColor that has been set for that cell.
All works fine on the desktop computer, but when I try to use my iPad, it does nothing. I have tried to use…

Remixed123
- 1,575
- 4
- 21
- 35
0
votes
0 answers
Where is the mouse handling code in notch's minecraft js code?
When I look at Notch's minecraft demo here - I can drag on the viewport with my trackpad and have the perspective shift.
When I look at David Nolen's ClojureScript version of the demo here - this does not occur. (But it is very impressive).
My…

hawkeye
- 34,745
- 30
- 150
- 304
0
votes
1 answer
javascript click function on iPhone
I have the following script
$(document).ready(function(){
var link = $('.menu > ul > li');
$(link).click (function(e) {
$(this).addClass('active').siblings().removeClass('active');
var a = $(e.target).attr('href');
…

hoops78
- 37
- 9
0
votes
1 answer