Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Apr 14, 2023
1 parent e48daa5 commit 3dff39a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Swiper {
cssOverflowAdjustment() {
// Returns 0 unless `translate` is > 2**23
// Should be subtracted from css values to prevent overflow
return Math.trunc(this.translate / 2**23) * 2**23;
return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
},

// Locks
Expand Down
6 changes: 3 additions & 3 deletions src/core/update/updateSlidesOffset.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default function updateSlidesOffset() {
: 0;
for (let i = 0; i < slides.length; i += 1) {
slides[i].swiperSlideOffset =
(swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop)
- minusOffset
- swiper.cssOverflowAdjustment();
(swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop) -
minusOffset -
swiper.cssOverflowAdjustment();
}
}

0 comments on commit 3dff39a

Please sign in to comment.