Make hyperbezier canvas responsive - #150
Merged
raphlinus merged 1 commit intoAug 15, 2026
Merged
Conversation
CSS alone would fix the visual overflow but break dragging. JavaScript alone would preserve dragging but leave the overflow.
raphlinus
approved these changes
Aug 15, 2026
raphlinus
left a comment
Contributor
There was a problem hiding this comment.
Great, I'm glad you followed up with this. I was thinking about making it work better on mobile but just didn't hassle with it at the time. Let's merge this and then if there are any problems, we'll take them as a followup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Read this on hacker news, great article!
On mobile, the images seemed to bleed off the edge of my screen, so I thought I’d contribute a little ptch to improve things.
To explain why these are the changes they are: CSS alone would fix the visual overflow but break dragging. JavaScript alone would preserve dragging but leave the overflow.
before:
after: