GithubHelp home page GithubHelp logo

kbjr / dragdrop Goto Github PK

View Code? Open in Web Editor NEW
173.0 173.0 39.0 140 KB

A JavaScript micro-framework for adding drag-and-drop functionality to elements for advanced UI development

Home Page: http://kbjr.github.io/DragDrop/index.html

License: Other

JavaScript 100.00%

dragdrop's People

Contributors

kbjr avatar tomtheisen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dragdrop's Issues

Only supports one draggable at a time?

If I attempt to make multiple elements draggable, only the last one actually moves. This is clearly a bug. Are you aware of it? If I wanted to fix it, where would I start?

dragClass not being removed on dragEnd

In Firefox Nightly 10.0a1 (2011-10-30) the drag class is not being removed properly so I drag an element multiple times, I'll end up with a drag class for each drag.

position:static?

Hi,

A new version was pushed and the use has changed. DragDrop refuse to work with position:static elements, which is the basic position value of an element. So, how does it work now?

Regards

Problems with fixed positioning to bottom : 0px

I am using your library for a project where I need the dragable elements to align at the bottom when the page loads, and when the user drags they stick to thier new positions
There is a problem with this: as soon as i start dragging the div gets pulled to the top and then drags along. which is odd and unnatural
am i doing something wrong or is this real issue, please help me out here is my code to recreate this problem

HTML:

<html>
    <head>
        <title>
            Test drag drop
        </title>

        <script type = "text/javascript" src = "dragdrop.min.js"></script>
        <script type = "text/javascript" src = "my.js"></script>

    </head>
    <body>
        <div id = "dad" style = "width: 100%; height: 100%; position: relative;background-color: green;"></div>

        <!-- <div id = "mom" style = "width: 200px; height: 200px; position: relative;background-color: gray;"></div> -->

    </body>
</html>
window.onload = function () {

    var dragMe = document.createElement('div');
    dragMe.setAttribute('style','width: 140px;height:100;position:fixed;bottom:0px;background-color: red;');

    var withMe = document.createElement('div');
    withMe.setAttribute('style','width: 140px;height:100;position: absolute;background-color: blue;');

    var dad = document.getElementById('dad');
    dad.appendChild(dragMe);

    DragDrop.bind(dragMe); 
};

confuse about the body().clientWidth code ?

I have saw the source code here .
k95s v0 jc q3q rja4 tfh

I just confuse about the body() , Under what circumstances can this code work and give what return .

Did you want to get the document.height at document.compatMode at BackCompat such as the code below

function body(){
        return (document.compatMode == "CSS1Compat") ?
        window.document.documentElement :
        window.document.body || null;
 };

thanks.

jquery plugin not included in release 0.3.0

Would be convenient if you do a release bump that includes the jquery plugin. I'm using bower to download and unless I point to the commit it downloads the 0.3.0 release which doesn't include the jquery wrapper. Would also be appreciate if you added the library to bower.
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.