We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19b6690 commit 0ff36c2Copy full SHA for 0ff36c2
CHANGELOG.md
@@ -1,8 +1,15 @@
1
## 2.3.0
2
3
> 2017-02-11
4
+
5
+### Features
6
7
- feat(src): add alias feature
8
9
+### Bug fixes
10
+- fix(event): `auto2top` has no effect on a FF mobile browser, fixed #67
11
12
13
## 2.2.1
14
15
src/event.js
@@ -135,8 +135,10 @@ export function bindToggle (dom) {
135
}
136
137
138
+const scrollingElement = document.scrollingElement || document.documentElement
139
140
export function scroll2Top (offset = 0) {
- document.body.scrollTop = offset === true ? 0 : Number(offset)
141
+ scrollingElement.scrollTop = offset === true ? 0 : Number(offset)
142
143
144
export function sticky () {
0 commit comments