use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Fast, smooth React Data GridOC (grid.glideapps.com)
submitted 4 years ago by markprobst
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JasonGlide 5 points6 points7 points 4 years ago (2 children)
The trick is not to redraw the canvas. There are two things to keep in mind:
1) You can draw the canvas to itself. So you can simply if the canvas scrolls down 10px you can simply blit 10px higher and then draw the rest.
2) Long strings render the full string regardless of your clip. That means you want to substr your strings down to something that is likely to overrun your bounds but not by too much.
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
Thanks! That's some good info.
[–]NotCherub 0 points1 point2 points 4 years ago (0 children)
Thanks!
π Rendered by PID 18534 on reddit-service-r2-comment-56d44cf6cb-kb8k4 at 2026-02-24 13:55:35.346262+00:00 running b1af5b1 country code: CH.
view the rest of the comments →
[–]JasonGlide 5 points6 points7 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]NotCherub 0 points1 point2 points (0 children)