Questions tagged [touchstart]

158 questions
0
votes
1 answer

preventDefault() on touchstart without disabling scrolling

I use the following script to prevent the first tap on a link: $(document).ready(function () { $('#container a').bind("touchstart",function(e){ var $link_id = $(this).attr('id'); if ($(this).parent().parent().data('clicked') ==…
0
votes
1 answer

Phonegap Android tap and hold

i m using a version of the code found ove here var startTime, endTime; document.getElementById(queryid).addEventListener('touchstart',function() { startTime = new Date().getTime(); },false); …
nikolas
  • 723
  • 2
  • 17
  • 37
0
votes
1 answer

Prevent click on Ipad/Iphone when sliding a jquery slider

I have structure
I have created sliding for iphone/ipad, I set the overflow:hidden on DIV and move UL up and down The problem is that when I start…
ArmeniaH
  • 733
  • 1
  • 8
  • 18
0
votes
2 answers

When touching html button on iPhone, the href occasionally adds # to the URL: Why?

Here's a live demo page ... and the relevant code: $('#button').on('touchstart', 'a', function(e) { e.preventDefault(); }); When using my iPhone4 and Safari 5.1.1, sometimes when touching the black button (on my demo page), I'll get a…
mhulse
  • 4,062
  • 6
  • 28
  • 35
0
votes
1 answer

Delay on active state for touch devices

I'm using the following code to allow ":active" state for touchevents.. document.addEventListener("touchstart", function() {},false); It works perfect, but is there a way to put a short delay on this if you are scrolling? I am trying to avoid the…
Josh
  • 605
  • 2
  • 8
  • 16
0
votes
2 answers

Heap size continuously increased when creating and deleting (recycling) Bitmaps in an ArrayList

I am creating a application that stores bitmaps in an array list or in an array. I have set android:largeHeap="true" in the manifest to increase the memory size for the application. I am creating 20 bitmaps and after that if a new bitmap created the…
Karan Rana
  • 638
  • 4
  • 14
-1
votes
2 answers

Touchstart event not Working on originally hidden button

I am creating an Android app and have 2 buttons. 1 start and 1 stop. To start with the stop button is visible once the start button has been clicked then the stop button becomes visible and start invisible. I am trying to get a touchstart event on…
SingleWave Games
  • 2,618
  • 9
  • 36
  • 52
-1
votes
1 answer

Kinetic JS, touch/hover this, affect all other objects

So, I'll try to explain this as best as I can: I have a canvas with a bunch of objects to touch have a highlighted state (swapping a background image as you can see here). I'm only showing 2 examples here for the objects 'applications' and…
RooWM
  • 583
  • 9
  • 23
1 2 3
10
11