ryanfitzer / multievent Goto Github PK
View Code? Open in Web Editor NEWA tool that parses out which events are supported in the browser's environment.
License: BSD 3-Clause "New" or "Revised" License
A tool that parses out which events are supported in the browser's environment.
License: BSD 3-Clause "New" or "Revised" License
Need to get some dependency management up in hir.
You can already supply your own custom behaviors:
var meCustom = multiEvent({
pointer: 'MSPointerOver',
mouse: 'mouseover',
touch: 'touchstart'
});
I'd like to also support each input declaring multiple events per input:
var meCustom = multiEvent({
pointer: [ 'MSPointerOver', 'MSPointerDown' ],
mouse: 'mouseover',
touch: 'touchstart'
});
Pointer events are the only inputs I see as benefiting from this:
If event is pointerdown and input is touch
Do this thing
Else if event is pointerover and input is mouse
Do that thing
Arrays are supported in the resolveEvents
function. The switch
statement in MultiEvent.prototype.resolve
is where the support needs to be added.
Is there a way to automate the interactions in multiple browsers?
I want remove the jQuery dependency. The event
object the user passes on the me.resolve( evt )
call is expecting an originalEvent
member.
Add custom Modernizr build for detecting touch. What's the best way to ship without overwriting another instance on the page? From what I can gather, Modernizr does not support a noConflict
method similar to jQuery's.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.