Questions tagged [touchstart]
158 questions
1
vote
1 answer
how to implement long touch in titanium
I am working at an Android app in Titanium. My question is how to implement long touch in Titanium? I need something like this: when user keep pressed a certain view to call some function. I tried this :
arrowright.addEventListener('touchstart',…

Gabrielle
- 4,933
- 13
- 62
- 122
1
vote
1 answer
jQuery conflict between touchstart/touchend with normal click in mobile screen
The click normal on image is not fired, I have a conflict with the touchstart/touchend commands in mobile device android.
The delay function is for show to alert after 5 seconds. But cancel if it does not reach 5 seconds.
Touchstart start function…

Renato Ramos Puma
- 399
- 3
- 13
1
vote
0 answers
How do I get a gif wihtin an Apple Books e-book to touchstart?
I am trying to get a .gif to work via touch start. Specifically, this gif is placed within an e-book intended to work with Apple Books.
I followed the guide here: How to play a gif only on onclick in javascript ... This worked great on Windows as…

Micah C. Miracle
- 11
- 4
1
vote
1 answer
window.addEventListener('click', function) not working on iPhone
I am currently working on Wes Bos' JavaScript 30 project, and in this drumkit project, I was hoping to add to his finished code by allowing user to click on the button rather than only through 'keydown' event.
After adding to the playSound function…

mrwuscience
- 53
- 7
1
vote
1 answer
Vuejs: Touchmove fired but always return on the first item when touchstart
I have question related to touch event with Vuejs.
I want to join some number with mouse event (for PC) and touch event (for Mobile Devices) like this:

Hai Tien
- 2,929
- 7
- 36
- 55
1
vote
0 answers
Lost click event on any link due to handling touchstart and touchend events - jQuery
Hi I am using touchstart and touchend to detect scroll on mobile browser.
//Detect Scroll on Mobile//
var ts;
$(document).bind('touchstart', function (e){
ts = e.originalEvent.touches[0].clientY;
});
$(document).bind('touchend', function (e){
…

krushna ratnaparkhi
- 37
- 2
- 11
1
vote
1 answer
Draggable toggle checkboxes events not firing on Chrome (JS/CSS)
I'm trying to replicate as closely as possible the sliding toggles of iOS, using just JS and CSS.
I've found the excellent pen by @3rror404 that does exactly that here.
While it works perfectly in iOS Safari , it does react just to clicks and not to…

Aldo
- 303
- 1
- 4
- 14
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
2 answers
What is the best way to simulate mouseover on mobile browsers with touch events?
I have a simple UI that allows users on desktop browsers to click on a cell in a grid, and while holding the mouse button down, move the mouse around to highlight multiple cells very quickly. I accomplish this with mousedown, mouseover and mouseup…

HartleySan
- 7,404
- 14
- 66
- 119
1
vote
1 answer
Delayed Click Event
Whenever I use a on(click) event the click is registered only when accessing another element.
$(".extensions").hide();
$('.outputs').on("touchstart click", function(e) {
var analogueOutputsVar = $("#AOUTP").val();
var onOffOutputsVar =…

Arno Claes
- 167
- 11
1
vote
1 answer
Remove/lower press/mousedown/touchstart delay in Angular 8?
I'm developing an app using Angular 8 (angular.io) and notice that the press/mousedown/touchstart events have a delay before they are fired, or at least before any response is seen in the view. Is there way to lower this delay or remove it? It…

Vitzkrieg
- 41
- 5
1
vote
3 answers
Why does my quiz does not start on touchscreen?
So, I wrote a quiz on JavaScript. It works perfectly on computes, but on touchscreen it does not start.
I changed
start.addEventListener('click', startQuiz);
to
start.addEventListener('touchstart', startQuiz);
But is still does not start. Should I…

Maija Krasts
- 11
- 1
1
vote
0 answers
Tap very quickly does not fired touchstart but click
I do a test with three pages, on the first page I put a link to the second.
On the second page I have a link in the same position of the first page to do a fast flow and I have an event listenner on touchstart and on click.
If I click very fast and…

Maxime Ingrao
- 11
- 1
1
vote
0 answers
Unable to preventDefault inside passive event
$(document).on( 'click touchstart', '.js-menu-toggler', function( e ){
e.preventDefault();
triggerClass( $(this), 'fa-plus', 'fa-minus' );
});
$(document).on( 'click touchstart', '.js-accordion-toggler', function( e ){
…

Vasilisa Sidorenkova
- 63
- 6
1
vote
1 answer
Changing the point at which the one touching the screen by a superior point, using react
I'm newbie using react and I'm trying now to get when a phone user touch screen, my web app interpretes that like the user has touched in another screen point. For example, a bit above.
I'm trying this:
onTouchStart = {(event) => {
…

Eugenio Salgado
- 9
- 1