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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:43:30+00:00 2026-05-20T06:43:30+00:00

I have a draggable object, with that can be accepted in several droppables.. I

  • 0

I have a draggable object, with that can be accepted in several droppables.. I have put all the droppables in a container, and simply want to be able to detect when the draggable is hovering over the container of droppables…

At first, I tried making use of the ‘over’ and ‘out’ callbacks for droppables, but it was not working because hovering from one droppable to another (inside the same container) was causing it to think the mouse had left the container…

So my next approach was to in the drag start callback, do an event listener for mouseenter and mouseleave on the container– and then stop listening on the drag stop callback…

However, this results in total crazy behavior… If you look at my example page:

http://collinatorstudios.com/www/jquery_draggable_test.html

When dragging the box to the red dropzone, you should see “enter” when the mouseenter event fires, and “leave” when mouseleave happens.. However, just dragging the box over the inside of the container causes “leave” to appear a zillion times….. I cannot figure out why this is happening, nor what solution there is to my problem so I can do what I need to. I’ve been working on this for almost 4 hours now and am losing my mind over what seems like it should be so simple to achieve.

Any help would be greatly appreciated… Thanks.

  • 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-20T06:43:30+00:00Added an answer on May 20, 2026 at 6:43 am

    You only need to bind to the events once! There is no need to bind and unbind them each time… I separated them out in the code below to make it more clear about binding once.

    And as ZDYN said (+1 to him), you need to include a droppable code, but instead of using the container, use the zones inside… here is a demo and the full code below.

    var feedback = $('#feedback');
    
    $('.item').draggable({
        revert: true,
        zIndex: 999,
        cursor: 'move'
    });
    
    $('.drop_zone').droppable({
        drop: function(event, ui) {
            ui.draggable.appendTo($(this));
        }
    }).bind('dropover dropout', function(e) {
        var id = this.id;
        feedback.text(e.type === 'dropover' ? 'Over: ' + id : 'Out: ' + id);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ImageView on my scene that I would like to set the
I have a problem with a bound property of a custom view. The property
I'm trying to create a transparent (no button background) ImageButton that has a custom
My requirements are to: Clone dynamically created image with on_click . Be able to
Hi every body i am developing a MVC application, and i want to use
I need to know how he takes drawable object. I'm collecting some ImageView objects
I have a video thumbnail and when you click on it, the video starts
I know this has been asked many times, but I don't understand what is
The API documentation gave me hopes last night with bindInfoWindowHtml. But it doesn't seem
i've created a simple panel with a title bar, and i'm trying to share

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.