Giter VIP home page Giter VIP logo

Comments (8)

bensmithett avatar bensmithett commented on August 15, 2024

@catmanjan I'm taking the progressive enhancement approach here. I mostly use these events to add/remove styling classes to indicate a user has dragged over an element. It's nice UI polish, but it's not vital to drag and drop. You can still drop on a dropzone that doesn't change its appearance on dragover.

I basically treat the events like I treat :hover in the world of touch devices. Nice & useful if you have an input device that supports them, never vital though.

Do you have a use case where these events are vital in old IE? (Will reopen if so)

from dragster.

catmanjan avatar catmanjan commented on August 15, 2024

What exactly is your reason for closing?

My use case is adding a hover style when dragging/dropping a file onto an element. It doesn't work in IE, therefore it is vital? 😕

from dragster.

bensmithett avatar bensmithett commented on August 15, 2024

@catmanjan at this point it's an enhancement, I've never promised old IE support. Reopened & labeled as such 😃

Old IE doesn't support DOM event constructors, and I don't want to bloat the library with cross-browser event junk to support a use-case I haven't had a need for.

There's a pull request in for a jQuery plugin version here that I haven't had a chance to play with yet: https://github.com/bensmithett/dragster/pull/2/files

That feels like a much nicer way to handle IE support - can you try it out & see if it solves your problems as is?

from dragster.

catmanjan avatar catmanjan commented on August 15, 2024

jQuery does help with IE support but that PR is buggy.

I will maintain a seperate repo with a jquery.dragster project, for anyone else seeing this, it is also available on Nuget, making version control easier for your MVC folk.

https://github.com/catmanjan/jquery-dragster

https://www.nuget.org/packages/jQuery.Dragster/1.0.0

from dragster.

bensmithett avatar bensmithett commented on August 15, 2024

@catmanjan sweet, thanks! I'll chuck a link in the main readme

from dragster.

bensmithett avatar bensmithett commented on August 15, 2024

@catmanjan any chance you can list off the bugs you found in the other jquery plugin PR?

from dragster.

catmanjan avatar catmanjan commented on August 15, 2024

Was suffering the same problem as issue #5.

Also does not pass in global jQuery namespace correctly, causing issues with other incorrect plugins.

from dragster.

MickL avatar MickL commented on August 15, 2024

Following Pull Request is working with IE9, IE10, IE11 and Edge:
https://github.com/christophermina/dragster

from dragster.

Related Issues (10)

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.