Skip to content

Releases: hongcankun/scroll-monitor

v0.6.0

23 Jul 16:37

Choose a tag to compare

  • Add new resolver ScrollAwayResolver
  • Improve ScrollNearResolver by adding corresponding "off" events
  • fix bug of wrong resolving of view size

v0.5.0

14 Jul 14:28

Choose a tag to compare

  • support adding resolver to montors by just supplying a function
  • target of Monitor can be Document now
  • ScrollMetric add bottom and right properties
  • add new resolver ScrollNearResolver, which can determine it the target is scrolling towards edges and within certain distance, including top, bottom, left, and right edges.

v0.4.0

07 Jul 17:40

Choose a tag to compare

Architecture change:

  • simplify Monitor by removing subscribers and global resolvers

Monitors:

  • simplify names of fields
  • add new function clearResolvers

ScrollDirectionResolver:

  • adapt to the changes of Monitor
  • should create this kind of resolver with a subscriber
  • support interval configuration by data attribute
  • simplify keys of data attributes

v0.3.0: Monitor add getter target and subscribers

15 Jun 15:49

Choose a tag to compare

  • Monitor add getter target and subscribers
  • Monitor can register own resolvers, not global
  • ScrollDirectionResolver will not toggle classes by default
  • ScrollDirection can specify multiple classes to toggle
  • ScrollMetric rename height to scrollHeight, width to scrollWidth
  • ScrollMetric add viewHeight and viewWidth
  • fix bug of resolving window's scrollHeight and scrollWidth

v0.2.2

08 Jun 16:59

Choose a tag to compare

  • ScrollDirectionResolver adds processing interval

v0.2.1

07 Jun 14:33

Choose a tag to compare

  • solve the problem of class "vibration"

v0.2.0: version 0.2.0:

06 Jun 14:51

Choose a tag to compare

  • complete core Monitor
  • add resolver ScrollDirectionResolver