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 7180247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:18:28+00:00 2026-05-28T17:18:28+00:00

The plugin posted in here: http://www.tutcity.com/javascript/jquery-mousehold-event.27019.htm is a JQuery plugin meant to listen for

  • 0

The plugin posted in here:

http://www.tutcity.com/javascript/jquery-mousehold-event.27019.htm

is a JQuery plugin meant to listen for mousehold events.

The problem I am having is that when you do something like:

var value = 0;
$(div1).mousehold(function() {
value+=1;
$('#result').html(value);
});

The value increments and did its thing. But if for one moment you started to move your mouse to another element (I do have an event listener for mousemove as well for div1), the mousehold event is cancelled.

How can I make it that the mousehold event does not get canceled on mouseout? Thanks and I apologize if the question is kind of a novice-level if it is xD

  • 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-05-28T17:18:29+00:00Added an answer on May 28, 2026 at 5:18 pm

    That’s how the plugin is set up. Comment out this line:

    jQuery(this).mouseout(clearMousehold);
    

    Then it should only stop the timer on mouseup.

    But now you have the problem that mouseup won’t fire outside of the element, so your function will keep running when you move the pointer elsewhere. To fix that you’ll have to listen for mouseup events on the whole document instead.

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

Sidebar

Related Questions

I am using jQuery font selector plugin posted here http://www.fullfatcode.com/2011/04/10/jquery-font-selector-version-2/ It's all good, except,
I'm trying to do something like the plugin found here: http://www.filamentgroup.com/lab/jquery_plugin_for_requesting_ajax_like_file_downloads/ does. I was
I posted a problem I'm having with the FlowPlayer jQuery plugin at http://static.flowplayer.org/forum/1/29367 ,
After reading Steve Sandersons post on swf upload. http://blog.stevensanderson.com/2008/11/24/jquery-ajax-uploader-plugin-with-progress-bar/ I have implemented the swf
I am creating this custom theme www.designislikethis.tumblr.com , which uses the jQuery Masonry and
Here's an issue I'm having with the .ajaxForm() method of the jQuery Form Plugin
(hello dr.Nick) :) So I posted a question yesterday about a content loader plugin
Is there a tool/plugin/function for Firefox that'll dump out a memory usage of Javascript
Here's my test case. If the form is posted, a 500 error response is
This perhaps is a more general jQuery (or even JavaScript) question: Basically I am

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.