Releases: hongcankun/scroll-monitor
Releases · hongcankun/scroll-monitor
v0.6.0
v0.5.0
- 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
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
- 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
- ScrollDirectionResolver adds processing interval
v0.2.1
- solve the problem of class "vibration"
v0.2.0: version 0.2.0:
- complete core Monitor
- add resolver ScrollDirectionResolver