Skip to content

Commit

Permalink
fix: 🐛 add return value for autoScroller in scroller plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector committed Oct 17, 2022
1 parent 2f310fc commit 5e102a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions examples/x6-example-features/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ const dataSource = [
example: 'case/er',
description: 'ER 图',
},
{
key: '8',
example: 'case/mind',
description: '脑图',
},
{
key: '9',
example: 'case/swimlane',
description: '泳道图',
},
]

const columns = [
Expand Down
2 changes: 1 addition & 1 deletion packages/x6-plugin-scroller/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class Scroller extends Disposable {
}

autoScroll(clientX: number, clientY: number) {
this.scrollerImpl.autoScroll(clientX, clientY)
return this.scrollerImpl.autoScroll(clientX, clientY)
}

// #endregion
Expand Down

0 comments on commit 5e102a3

Please sign in to comment.