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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:39:28+00:00 2026-05-23T18:39:28+00:00

Possible bug with AJAX futures drag and drop functionality in chrome: <head runat=server> <title></title>

  • 0

Possible bug with AJAX futures drag and drop functionality in chrome:

<head runat="server">
    <title></title>
    <script type="text/javascript">

        function pageLoad() {
            var source1 = new Custom.UI.ColorDragSourceBehavior($get("1"), "1");
            source1.initialize();
            var source2 = new Custom.UI.ColorDragSourceBehavior($get("2"), "2");
            source2.initialize();
      }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width:200%;">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Name="PreviewScript.js" Assembly="Microsoft.Web.Preview" />
                <asp:ScriptReference Name="PreviewDragDrop.js" Assembly="Microsoft.Web.Preview" />
                <asp:ScriptReference Path="~/Scripts/ColorDragDrop.js" />
            </Scripts>
        </asp:ScriptManager>
        <div id="1" style="float:left; width:30px; height:30px; background-color:Blue;">Left</div>
        <div id="2" style="float:right;width:30px; height:30px; background-color:Blue;">Right</div>
    </div>    
    </form>
</body>
</html>

ColorDragDrop.js is available here:

Scroll to right and click on right division and the window auto scrolls back to the left.

There are a couple of mentions of this on the web but no solutions so I thought I’d ask here. I’m under a tight deadline and would rather not have to re-implement the drag and drop using jQuery or similar so any help gratefully received.

  • 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-23T18:39:29+00:00Added an answer on May 23, 2026 at 6:39 pm

    I found a 3 line hack here:

    http://www.targetprocess.com/agileproductblog/2009/03/aspnet-20-ajax-safari-and-scroll-offset.html

    if (Sys.Browser.agent === Sys.Browser.Safari) {
        Sys.Preview.UI.DragDropManager._getInstance().getScrollOffset =
                    Sys.Preview.UI.IEDragDropManager.prototype.getScrollOffset
        Sys.Preview.UI.DragDropManager._getInstance()._autoScroll = function() { }
    }
    

    works for safari and chrome.

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

Sidebar

Related Questions

I am trying to fix a bug on an ActiveX control. Is it possible
Possible Duplicate: Workarounds for JavaScript parseInt octal bug I'm parsing a string to check
Having a weird bug in production and just wondering if it's possible for a
If you find a bug in a package, it's usually possible to patch the
I am building a bug-tracking application, where I am thinking of taking maximum possible
We discovered a possible bug involving the DataGridView. The DataGridView has a property, StandardTab,
Possible Duplicate: .Net Round Bug In C#: Math.Round(2.5) result is 2 (instead of 3)!
Possible Duplicate: Workarounds for JavaScript parseInt octal bug Surprisingly it returns 0 . Why?
Is it possible to force a column in a SQL Server 2005 table to
I found a possible bug in perl's closures and $1 regexp variables. Simply, they

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.