Skip to content

Commit

Permalink
fix: fix scroll bar delta #51
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed May 31, 2023
1 parent a0a26cb commit 22d6fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/infinite-viewer/src/ScrollBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class ScrollBar extends EventEmitter {
if (!e.datas.isThumb) {
return;
}
this.scrollBy(this.isHorizontal ? e.deltaX : e.deltaY, true);
this.scrollBy(this.isHorizontal ? e.deltaX : e.deltaY);
};
protected _onWheel = (e: WheelEvent) => {
const delta = this.isHorizontal ? e.deltaX : e.deltaY;
Expand Down

0 comments on commit 22d6fac

Please sign in to comment.