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
0
votes
1 answer

jQuery single page site drop menu links fail on iOS iPad/iPhone

I have a one-page scrolling site running jquery (not jquery mobile) I have an anchor link that triggers the display of a drop menu (unordered list). Clicking a list item within the drop menu animates the associated slide into view, and hides the…
0
votes
1 answer

JS multitouch for checking swipes

I was looking for the solution to find out swipe left and right on mobile browsers and created the lib (below). My questions is: is there a simple way of checking for swipe on android and iOS? Also: can I use mouse events instead? (function (lib,…
0
votes
2 answers

How to use 'TouchStart' events in Jquery Mobile

In Html5:- in footer it will store the data which is cuming dynamically and footer part should move by touch not whole window only footer should move with the data is present in footer left to right
Atul Dhanuka
  • 1,453
  • 5
  • 20
  • 56
0
votes
0 answers

Css Hover on touch enabled devices using touchstart and touchend

I have a simple website which has a few :hover effects in it, placed on div's, not links. I need to make these effects visible on the ipad. I am currently using 'touchstart' in my header: