All the section-* events are now emitted with the native event object as the second parameter.
A couple floating point issues have been fixed.
Documentation
Add documentation for new events.
Fix some minor formatting issues.
Demo
Demo page now has a section for trying out events.
Checkbox labels can now be clicked to toggle the value (as they should). I didn't know checkbox labels' for attribute mapped to id.
Fields have better validations now.
Implementation
Implementation wise, this PR makes it very easy to add support for new native section events. The process would be as simple as updating the utils/events.js file with the event name and the event would be supported on the section. An entry for the event would be made on the demo page as well. The coverage wouldn't drop either because tests are generated dynamically for these events. Of course the README would have to be updated too.
This PR implements the following changes:
Library
section-mouseenter
section-mouseleave
section-mouseover
section-mouseout
section-mousemove
section-*
events are now emitted with the native event object as the second parameter.Documentation
Demo
for
attribute mapped toid
.Implementation
Implementation wise, this PR makes it very easy to add support for new native section events. The process would be as simple as updating the
utils/events.js
file with the event name and the event would be supported on the section. An entry for the event would be made on the demo page as well. The coverage wouldn't drop either because tests are generated dynamically for these events. Of course the README would have to be updated too.