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

  • SEARCH
  • Home
  • 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 8010389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:43:16+00:00 2026-06-04T18:43:16+00:00

I am using a fancybox with plugin jquery.easydrag.js . The reason for this is

  • 0

I am using a fancybox with plugin jquery.easydrag.js. The reason for this is to be able to drag the fancybox around.

It seems to be working fine, but the problem comes when the fancybox has scrollbars. I.e. for example when clicking on submit and not entering any fields the valdidation on screen causes scrollbars. Which is fine normally but the scrollbars causes all sorts of issues with the draggable feature so that when I am trying to click the scrollbar up and down, it actually moves the entire windows. So it seems to be confused as to what content can be moved and what to do with a scrollbar.

        claimLink.fancybox({
        'width': 500,
        'height': 590,
        'autoDimensions': false,
        'onCleanup': function (e) {

            var modelClaimFormId = $j(e).attr("href").replace("body", "");
            var modalClaimForm = $j(modelClaimFormId);

            if (!($j(modalClaimForm).valid())) {
                $j(claimForm).remove();
                $j(e).parents("tr").remove();
            }

        }
    });

    $j("#fancybox-wrap").easydrag(true);

EDIT :

I managed to add something for input and textareas to ignore the scrolling see below…just wondering what I can do for scrollbars.

                $j("#fancybox-wrap").easydrag(true);

            $j("#fancybox-wrap input,textarea").click(function(){
                $j("#fancybox-wrap").dragOff();
            });
            $j("#fancybox-wrap input,textarea").mouseover(function () {
                $j("#fancybox-wrap").dragOff();
            });
            $j("#fancybox-wrap input,textarea").blur(function () {
                $j("#fancybox-wrap").dragOn();
            });
            $j("#fancybox-wrap input,textarea").mouseout(function () {
                $j("#fancybox-wrap").dragOn();
            });

This is the link to JS for easydrag plugin

  • 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-04T18:43:18+00:00Added an answer on June 4, 2026 at 6:43 pm

    I posted the first example about how to make fancybox draggable back in 2009 for v1.2.1. Then I posted some notes to make it work with v1.3.1 as seen here but when fancybox v1.3.4 was introduced, the easyDrag plugin was not working as smooth as with the previous versions and started behaving buggy. I didn’t have the time to find a workaround … so I just drop it.

    The solution was simple though: the easyDrag plugin provides a way to set a “handler” as explained here so instead of holding and dragging the whole #fancybox-wrap container, which blocks access to the scroll bars if any, you just drag the lightbox from a specific defined element. Such handler can be appended to #fancybox-wrap selector and set it within the EasyDrag plugin using the onComplete callback API option like:

    'onComplete': function(){
      // append the handler on the top-left corner of fancybox
       $("#fancybox-wrap").append("<button id='handler'>Drag me</button>");
      // set the handler using the handler's element ID
       $("#fancybox-wrap").setHandler('handler');
    }
    

    Notice that you can use any element as handler, in my example I used a html button but you may use an image if preferred. The important thing is to assign the minimum important css properties to the handler so it can be appended to the #fancybox-wrap container without issue like:

    width: 80px; /* or whatever needed */
    height: 24px;
    position: absolute; /* important to position the handler into the fancybox wrap */
    top: 0; /* top-left corner of the box but can be anywhere */
    left: 0;
    display: block;
    z-index: 1120; /* important to be over the box */
    

    other properties can be cosmetic.

    See it working here!!!

    Once you complete and submit the form, the response will be a new fancybox with scroll bars that you can use independently from the easyDrag handler.

    Please feel free to analyze the code and customize it to your own needs (and don’t forget to grant me the bounty 😉

    UPDATE: Notice that since we are appending the handler to the #fancybox-wrap container every time we fire fancybox, then we need to remove it once we close fancybox using the onClosed callback, otherwise we will duplicate the handler if we open fancybox again with unexpected results:

    'onClosed' : function() {
      $("#fancybox-wrap #handler").remove();
    }
    

    I updated my DEMO too.

    LAST NOTE: This solution is for fancybox v1.3.4.

    I haven’t tested it with v2.x but I don’t see why it wouldn’t work. Just make sure that you bind EasyDrag and append the handler to the .fancybox-wrap selector instead

    $(".fancybox-wrap").easydrag(); 
    

    You may use the afterShow callback to append the handler to it and afterClose to remove it.

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

Sidebar

Related Questions

I'm experiencing a little bugger using the fancybox jquery plugin. I want to use
I am using this layover plugin to display content: http://jquery.com/demo/grey/ I know there must
I'm using the http://fancyapps.com jQuery plugin Fancybox v2. It took me a while to
I'm using the fancybox jQuery plugin and right now, it's being called with a
I'm using the Fancybox plugin for my modal windows. It seems like no matter
I using the fancybox plugin for jquery and I want to put a link
hey i'm using a jquery plugin Fancybox , which is a Lightbox type plugin.
I'm using FancyBox jquery plugin to display modal popup boxes. The site is: http://www.chatisfying.com
I was hoping that someone can help me with this fancybox plugin issue. Problem
I did video overlays using fancybox. but the problem is some of my videos

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.