send-scroll

1.0.0 • Public • Published

Used with mercury or mercury-like apps with BaseEvent:

var m = require('mercury')

m.Delegator().listenTo('scroll')

...

var sendScroll = require('send-scroll')(m.BaseEvent)

h('div', {
  'ev-scroll': sendScroll(app.state.channels.scroll) // Emits the scrollTop location
})

Package Sidebar

Install

npm i send-scroll

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • deepanchor