orstavik / joicomponents Goto Github PK
View Code? Open in Web Editor NEWPatterns and mixins for making reusable web components. Simple. Tested. Enjoyable!
Patterns and mixins for making reusable web components. Simple. Tested. Enjoyable!
So that the original event is processed before the gesture events? To do so we would need to async que the gesture event. But. If we do so, then we might be able to stop the gesture by stopping the propagation of the trigger touchevent above the gesture making event. This I think would be bad, it would be confusing.
styleCallback
layoutCallback
efficient que for calling the style and layout calculations sparingly. Make que system that works on HTMLElement.compareDocumentPosition. https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
This should likely be dynamic, but perhaps only dynamic once.
If one element with styleCallback creates other elements with styleCallback during a styleCallback que flush, then those new elements should be added at the end. No elements should be run twice in the styleCallback que.
efficient, run once every raf and add a manual trigger?
efficient, add a register of previous values, so that if no change since last call, the callback will not be triggered.
demo for styleCallback
demo for layoutCallback
unitTest for styleCallback
unitTest for layoutCallback
Can we wrap the .preventDefault and .stopPropagation methods in a good way?
Does this look ok?
Do we need to process something in the submit event that we do not have? such as relList?
Events,
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.