Skip to content

feat: add lock and unlock methods - #514

Closed
damnsamn wants to merge 2 commits into
darkroomengineering:mainfrom
damnsamn:feat/add-lock-methods
Closed

damnsamn wants to merge 2 commits into
darkroomengineering:mainfrom
damnsamn:feat/add-lock-methods

Conversation

@damnsamn

@damnsamn damnsamn commented Apr 22, 2026 •

Copy link
Copy Markdown

Summary

  • add lock() and unlock() methods for manually controlling Lenis lock state
  • preserve the locked state across internal resets by decoupling manual lock override (forceLocked) from transient internal locking
  • prevent native scrollbar interaction while locked
  • add playground controls/debug output to verify the behavior

resolves #513

Reasoning for this feature is included in the linked issue

@damnsamn
damnsamn requested a review from a team as a code owner April 22, 2026 06:40
@damnsamn
damnsamn requested review from arzafran and feledori April 22, 2026 06:40
@arzafran

Copy link
Copy Markdown
Member

closing this as part of a backlog cleanup, we're keeping the open PR queue to work the core team is actively driving. thanks for the contribution, if the feature is still needed we'll revisit it via an issue.

@arzafran arzafran closed this Aug 11, 2026
@damnsamn

Copy link
Copy Markdown
Author

Fair enough @arzafran

For what it's worth, I'm still making use of the functionality this adds in our project via a patch file, so it's proving itself out there, at least. So I'd call this feature still needed - by me, at least

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Allow manual isLocked updates

2 participants