Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
* [html5] fix appear direction.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRaindrop committed Mar 22, 2017
1 parent 146968b commit 36a71b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5/render/vue/utils/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ export function watchAppear (context) {
listener = listener.fn
}
const scrollTop = container.scrollTop || window.pageYOffset
lastScrollTop = scrollTop
listener && listener(createEvent(context.$el, type, {
direction: scrollTop > lastScrollTop ? 'down' : 'up'
}))
lastScrollTop = scrollTop
}
}, 25, true)

Expand Down

0 comments on commit 36a71b1

Please sign in to comment.