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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:58:34+00:00 2026-05-18T02:58:34+00:00

I have an <input type=range> scroll and a div that on mouseover and mouseleave

  • 0

I have an <input type="range"> scroll and a div that on mouseover and mouseleave changes its background. You can see the working code here: http://jsfiddle.net/y8S57/ , please use a Webkit browser as type="range" works only on Webkit.

The problem is that if the mouse is down on the type="range" button and enters the mouseover and mouseleave zone the respective events are not triggered. Somehow using the type="range" cancels the other events that should be happening.

How can I fix this so when I drag the <input type="range"> and my mouse is over that mouseover div the mouseover event to trigger?

HTML:

<input id="zoom" type="range" name="zoom" min="10" max="100" step="1" value="40" >
<div id="zone"></div>

JavaScript:

$("#zone").mouseenter(function(){
   $(this).css({background:"red"});
});

$("#zone").mouseleave(function(){
   $(this).css({background:"black"});
});
  • 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-18T02:58:34+00:00Added an answer on May 18, 2026 at 2:58 am

    Unfortunately it looks like WebKit just isn’t firing mouse events on other elements here. All I can offer you is how to shorten your code down:

    $("#zone").hover(function(){
       $(this).css({background:"red"});
    }, function(){
       $(this).css({background:"black"});
    });
    

    This isn’t a bug you can fix (and may certainly be intentional behavior by the browser), posting it on the WebKit Bugzilla will do the most good here. By intentional I mean they probably actively do this for other reasons, for example when you go crazy dragging you wouldn’t want to trigger a flyout menu that covers the slider all the sudden.

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

Sidebar

Related Questions

I have an input type=range that is bigger then its parent. I want to
I have 1 slider and 1 button: <div data-role=fieldcontain> <input type=range name=slider id=slider value=0
I have an input type file element: <input type=file name=val1 /> And jquery: $(input[name='val1']).off(click);
I have an ASP.NET Webform and inside the form I have an input type
I have an input of type text , from which I have already entered
I have a list of input type radio buttons in formview (edit mode) and
I have an INPUT element of the TEXT type and I want to perform
I have an input field on my page where the user will type in
I have an input form with two textareas allowing a user to type in
I have this input text: <html><head><meta http-equiv=content-type content=text/html; charset=utf-8></head><body><table cellspacing=0 cellpadding=0 border=0 align=center width=603>

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.