Mirror of https://github.com/improsocial/impro An extensible Bluesky client for web impro.social
5

Configure Feed

Select the types of activity you want to include in your feed.

Set container for scroll lock at lock time

Grace Kind (Jul 13, 2026, 8:28 PM -0500) a5a90dd6 0871eb06

+5 -5
+1 -1
package.json
··· 1 1 { 2 2 "name": "impro", 3 - "version": "0.17.151", 3 + "version": "0.17.152", 4 4 "type": "module", 5 5 "scripts": { 6 6 "start": "rm -rf \"${BUILD_DIR:-build}\" && NODE_ENV=development eleventy --serve",
+4 -4
src/js/scrollLock.js
··· 96 96 export class ScrollLock { 97 97 constructor(target) { 98 98 this.target = target ?? null; 99 - this.container = document.querySelector(".page-visible"); // todo find better way to get container 100 99 this.locked = false; 101 100 this._lockedAncestor = null; 102 101 this._previousAncestorOverflow = ""; ··· 106 105 if (this.locked) { 107 106 return; 108 107 } 109 - if (!this.container) { 108 + const container = document.querySelector(".page-visible"); // todo find better way to get container 109 + if (!container) { 110 110 console.warn( 111 111 "ScrollLock: no .page-visible container found; skipping lock", 112 112 ); 113 113 return; 114 114 } 115 115 if (__scrollLockHolders.length === 0) { 116 - lockScroll(this.container); 117 - __lockedContainer = this.container; 116 + lockScroll(container); 117 + __lockedContainer = container; 118 118 } 119 119 __scrollLockHolders.push(this); 120 120 // If target is passed, lock the nearest scrollable ancestor of that target in addition to the outer page