Giter VIP home page Giter VIP logo

dragster's People

Contributors

bensmithett avatar christophermina avatar drpepper avatar jankuca avatar openjck avatar zamicol 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

dragster's Issues

Leave event not triggered on target drop

Drag and drop onto target, dragster enter fires the first time.

Perform same drag and drop again, dragster enter does not fire until the cursor has left and re-entered.

Looking for a new maintainer

I'm travelling for a while, so have limited computering/internet time for the next little while.

Additionally, I haven't used dragster in production for a couple of years, so I'm definitely no longer the best person to maintain it or respond to issues. I'd call it abandonware and move on, but I still get the occasional issue, PR or email about it, so I assume it's being used in the wild somewhere.

Please let me know if you'd like to take it over ๐Ÿ˜„

(Ping existing contributors - no pressure! @jankuca @drpepper @christophermina )

Dragster is unlicensed, prohibiting users from reproducing it, distributing it, or creating derivative works

Dragster is unlicensed. I'm not a lawyer, but this appears to prohibit others from distributing this code or creating derivative works. I assume this is unintentional.

From the GitHub guidance on licensing:

You're under no obligation to choose a license. However, without a license, the default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works from your work. If you're creating an open source project, we strongly encourage you to include an open source license. The Open Source Guide provides additional guidance on choosing the correct license for your project.

Add drop capability

Hello.
Today I integrated your library into my project, and I also needed to remove 'dragged-over' css class from the container after the dragged element is dropped inside the container.
But if a dragged element is dropped inside the container the 'dragster:leave' event is not fired.
I made it work like this

var dragster = new Dragster(element[0]);

element.on("drop", function (event) {

                dragster.dragleave(event);
})

It looks like a hack.
Maybe you should support dropping events too.

Event leave sometimes is called when I start dragging file

Hello!

I am using dragster and have noticed a weird thing. I have dragster binded on the body tag and I need to show a shadow on the full browser window, when I am dragging in some files. And after drop or dragging files out I need to hide it. But, sometimes when I take file and dragging them in the window, the event drag leave is called. It looks like a blink of shadow, after I start dragging in something.

Here is, how it happens on the project demo page - I've just took a file and dragged it in the drop zone, then I've made a screenshot. You see, that not only drag enter event is called, but drag enter and drag leave and then drag enter again.
Chrome and Mozilla browsers.

Do you have any idea how to solve it? Thanks.

rsz_1drugster_bug

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.