Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7899829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:48:36+00:00 2026-06-03T08:48:36+00:00

Do someone know; how to handle touchstart and touchend events on jquery mobile’s slider?

  • 0

Do someone know; how to handle touchstart and touchend events on jquery mobile’s slider?
I can only handle change and start event but couldn’t find a solution for touchend.

My goal is to block tracing the slider changes when not being touched.

Any help will be very appreciated.
Thanks,

My codes:

HTML:

<input type="range" name="slider" id="slider" class="slider" value="1000" min="500" max="20000" data-highlight="true" data-mini="true" />

JS:

starts tracing after being touched (will keep tracing):

$('#slider').next().children('a').bind('taphold', function () {
    $('#slider').live("change", function (event, ui) {
    //do some stuff here...
    });
});

always trace:

 $('#slider').live("change", function (event, ui) {
    //do some stuff here...
    });

stop tracing after touch ends:

??? I have to stop tracing somehow

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:48:38+00:00Added an answer on June 3, 2026 at 8:48 am

    What about using vmouseup. As it’s stated in the doc, it’s the event you have to use to handle touchend or mouseup events.

    You could combine that with the use of unbind to achieve your goal no?

    EDIT:

    I just tested with chrome and the following

    $('#slider').next().children('a').bind('taphold', function() {
        console.log("bind");
        $('#slider').bind("change", function(event, ui) {
            console.log(this.value);
        });
    });
    
    $('#slider').next().children('a').bind('vmouseup', function() {
        console.log("unbind");
        $('#slider').unbind("change")
    });
    

    works exactly as expected. In the console I get a “bind” when I do a taphold (that is a long clic on a laptop) and then every move outputs the value. When I release my mouse I get an “unbind” and then sliding whithout holding still beforehand does not output the value (no output either if the value is changed thru the slider box).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using SWT Text component. Do someone know how can I handle copy/paste operation
Can someone help me to know how can i use dlopen to get handle
Someone let me know how to handle Group Box Close event, as i didn't
Does someone know of a Sqlite manager that I can put on my site,
I know how to handle the events by subscribing (setOnClickChildListener) of the ExpandableListView (or
Can someone please let me know how to get the different segments of the
I know I can send an email to someone in the form of SMS,
I'm asking this because I really don't know where I should handle events of
Someone know some interesting and complete tutorial about how to create a Parent-Child dimension
Could someone know where is saved path to external XML-File that contain configuration for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.