Comments (8)
@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.
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.
@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.
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.
@catmanjan sweet, thanks! I'll chuck a link in the main readme
from dragster.
@catmanjan any chance you can list off the bugs you found in the other jquery plugin PR?
from dragster.
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.
Following Pull Request is working with IE9, IE10, IE11 and Edge:
https://github.com/christophermina/dragster
from dragster.
Related Issues (10)
- Not working with ie 11 HOT 7
- Leave event not triggered on target drop HOT 4
- Events are triggered many times HOT 2
- Add drop capability HOT 6
- Not working over <iframe>
- how to use dragster in ES6 (or webpack)? HOT 3
- Looking for a new maintainer HOT 11
- Event leave sometimes is called when I start dragging file
- Dragster is unlicensed, prohibiting users from reproducing it, distributing it, or creating derivative works HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dragster.