Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
chore(core-scroll): Remove unused param in Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
skjalgepalg committed Aug 2, 2022
1 parent 15116ff commit 584f443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-scroll/core-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default class CoreScroll extends HTMLElement {
let moveX = requestJumps ? 1 : x - this.scrollLeft
let moveY = requestJumps ? 1 : y - this.scrollTop

return new Promise((resolve, reject) => {
return new Promise((resolve) => {
const move = () => {
if (DRAG.animate === uuid && (Math.round(moveX) || Math.round(moveY))) {
this.scrollLeft = x - Math.round(moveX *= friction)
Expand Down

0 comments on commit 584f443

Please sign in to comment.