Skip to content

Commit

Permalink
Merge pull request #1379 from didi/fix-issues-1375
Browse files Browse the repository at this point in the history
fix issues 1375
  • Loading branch information
hiyuki authored Jan 15, 2024
2 parents 5c08d8a + c8c4671 commit 2402ec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/core/__tests__/web/mpx-scroll.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ describe('test mpx scroll', () => {
const app = new Vue({
template: `
<div id="app" class="app">
<div class="page">
<page>
<div class="pull-down-loading" style="height: 0"></div>
</div>
</page>
</div>
`
})
Expand All @@ -32,7 +32,7 @@ describe('test mpx scroll', () => {
}

test('el is a dom', () => {
expect(ms.el).toEqual(document.querySelector('.page'))
expect(ms.el).toEqual(document.querySelector('page'))
})

test('regist events and hooks', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/helper/MpxScroll/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class MpxScroll {
// 下拉阻尼系数
this.ratio = 0.5

this.el = getElement('.page')
this.el = getElement('page')
this.touchstartY = 0
this.currentY = 0
this.translateY = 0
Expand Down

0 comments on commit 2402ec5

Please sign in to comment.