Skip to content

Commit

Permalink
update links
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Feb 27, 2024
1 parent de3ad39 commit 69a9705
Show file tree
Hide file tree
Showing 15 changed files with 7,337 additions and 6,736 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ yarn-error.log*
.vercel
.eslintcache

/packages/no-code
/packages/no-code

.npmrc
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Introduction

This is our take on smooth scroll, lightweight, hard-working, smooth as butter scroll. See [Demo](https://lenis.studiofreight.com/).
This is our take on smooth scroll, lightweight, hard-working, smooth as butter scroll. See [Demo](https://lenis.darkroom.engineering/).

<br>

Expand Down Expand Up @@ -264,10 +264,10 @@ html.lenis {

This set of hooks is curated and maintained by the Studio Freight Darkroom team:

- Clément Roche ([@clementroche\_](https://twitter.com/clementroche_)) – [Studio Freight](https://studiofreight.com)
- Guido Fier ([@uido15](https://twitter.com/uido15)) – [Studio Freight](https://studiofreight.com)
- Leandro Soengas ([@lsoengas](https://twitter.com/lsoengas)) - [Studio Freight](https://studiofreight.com)
- Franco Arza ([@arzafran](https://twitter.com/arzafran)) - [Studio Freight](https://studiofreight.com)
- Clément Roche ([@clementroche\_](https://twitter.com/clementroche_)) – [darkroom.engineering](https://darkroom.engineering)
- Guido Fier ([@uido15](https://twitter.com/uido15)) – [darkroom.engineering](https://darkroom.engineering)
- Leandro Soengas ([@lsoengas](https://twitter.com/lsoengas)) - [darkroom.engineering](https://darkroom.engineering)
- Franco Arza ([@arzafran](https://twitter.com/arzafran)) - [darkroom.engineering](https://darkroom.engineering)

<br/>

Expand Down
10 changes: 5 additions & 5 deletions packages/lenis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Introduction

This is our take on smooth scroll, lightweight, hard-working, smooth as butter scroll. See [Demo](https://lenis.studiofreight.com/).
This is our take on smooth scroll, lightweight, hard-working, smooth as butter scroll. See [Demo](https://lenis.darkroom.engineering/).

<br>

Expand Down Expand Up @@ -264,10 +264,10 @@ html.lenis {

This set of hooks is curated and maintained by the Studio Freight Darkroom team:

- Clément Roche ([@clementroche\_](https://twitter.com/clementroche_)) – [Studio Freight](https://studiofreight.com)
- Guido Fier ([@uido15](https://twitter.com/uido15)) – [Studio Freight](https://studiofreight.com)
- Leandro Soengas ([@lsoengas](https://twitter.com/lsoengas)) - [Studio Freight](https://studiofreight.com)
- Franco Arza ([@arzafran](https://twitter.com/arzafran)) - [Studio Freight](https://studiofreight.com)
- Clément Roche ([@clementroche\_](https://twitter.com/clementroche_)) – [darkroom.engineering](https://darkroom.engineering)
- Guido Fier ([@uido15](https://twitter.com/uido15)) – [darkroom.engineering](https://darkroom.engineering)
- Leandro Soengas ([@lsoengas](https://twitter.com/lsoengas)) - [darkroom.engineering](https://darkroom.engineering)
- Franco Arza ([@arzafran](https://twitter.com/arzafran)) - [darkroom.engineering](https://darkroom.engineering)

<br/>

Expand Down
2 changes: 1 addition & 1 deletion packages/lenis/dist/lenis.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/lenis/dist/lenis.cjs.js.map

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions packages/lenis/dist/lenis.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,7 @@
this.isSmooth = syncTouch || smoothWheel;
this.isScrolling = false;
this.targetScroll = this.animatedScroll = this.actualScroll;
this.options.wrapper.addEventListener('scroll', this.onNativeScroll, {
passive: false,
});
this.options.wrapper.addEventListener('scroll', this.onNativeScroll, false);
this.virtualScroll = new VirtualScroll(eventsTarget, {
touchMultiplier,
wheelMultiplier,
Expand All @@ -440,9 +438,7 @@
}
destroy() {
this.emitter.destroy();
this.options.wrapper.removeEventListener('scroll', this.onNativeScroll, {
passive: false,
});
this.options.wrapper.removeEventListener('scroll', this.onNativeScroll, false);
this.virtualScroll.destroy();
this.dimensions.destroy();
this.toggleClassName('lenis', false);
Expand Down
2 changes: 1 addition & 1 deletion packages/lenis/dist/lenis.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/lenis/dist/lenis.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/lenis/dist/lenis.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/lenis/dist/lenis.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/lenis/dist/lenis.umd.js.map

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions packages/lenis/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ export default class Lenis {
this.isScrolling = false
this.targetScroll = this.animatedScroll = this.actualScroll

this.options.wrapper.addEventListener('scroll', this.onNativeScroll, {
passive: false,
})
this.options.wrapper.addEventListener('scroll', this.onNativeScroll, false)

this.virtualScroll = new VirtualScroll(eventsTarget, {
touchMultiplier,
Expand All @@ -121,9 +119,11 @@ export default class Lenis {
destroy() {
this.emitter.destroy()

this.options.wrapper.removeEventListener('scroll', this.onNativeScroll, {
passive: false,
})
this.options.wrapper.removeEventListener(
'scroll',
this.onNativeScroll,
false
)

this.virtualScroll.destroy()
this.dimensions.destroy()
Expand Down Expand Up @@ -201,7 +201,7 @@ export default class Lenis {
return

if (this.isStopped || this.isLocked) {
event.preventDefault()
event.preventDefault() // this will stop forwarding the event to the parent, this is problematic
return
}

Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@studio-freight/tempus": "^0.0.36",
"clsx": "^1.2.1",
"glslify-loader": "^2.0.0",
"gsap": "npm:gsap-trial@^3.11.5",
"gsap": "npm:@gsap/business@^3.12.5",
"leva": "^0.9.34",
"nanoevents": "^7.0.1",
"next": "^13.2.4",
Expand Down
Loading

1 comment on commit 69a9705

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"⚡️ Lighthouse report for the changes in this commit:

🟠 Performance: 57
🟢 Accessibility: 96
🟢 Best practices: 100
🟠 SEO: 67
🔴 PWA: 33

Lighthouse ran on https://lenis-fmzgtdj43-studio-freight.vercel.app/"

Please sign in to comment.