# Overscroll in DrRacket

**URL:** <https://racket.discourse.group/t/overscroll-in-drracket/914>\
**Category:** General\
**Created:** [April 21, 2022, 11:58pm UTC](https://racket.discourse.group/t/overscroll-in-drracket/914 "2022-04-21T23:58:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [April 21, 2022, 11:58pm UTC](https://racket.discourse.group/t/overscroll-in-drracket/914/1 "2022-04-21T23:58:13Z")

</div>

One of my students showed me "overscroll" in VSCode recently, and it seems like a nice feature. Specifically, it allows you to scroll an editor window down until the bottom line of the buffer is about halfway up the screen. This avoids having to put a bunch of newlines at the bottom of a buffer to achieve the same effect. I've also been frustrated recently by type errors that sometimes pop up and down, moving or hiding the text that I'm working on.

Is this a feature that others think is worth working on?

---

<div class="post-metadata">

**Author:** ![benknoble](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/benknoble/32/16_2.png) [@benknoble](https://racket.discourse.group/u/benknoble)\
**Post date:** [April 22, 2022, 1:28am UTC](https://racket.discourse.group/t/overscroll-in-drracket/914/2 "2022-04-22T01:28:55Z")

</div>

FWIW, vim has this too (_e.g._, `Gzz` to put the bottom line in the middle).

---

<div class="post-metadata">

**Author:** ![mflatt](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/mflatt/32/6_2.png) [@mflatt](https://racket.discourse.group/u/mflatt)\
**Post date:** [April 22, 2022, 2:00am UTC](https://racket.discourse.group/t/overscroll-in-drracket/914/3 "2022-04-22T02:00:33Z")

</div>

The `allow-scroll-to-last` method of `editor-canvas%` may be relevant:

[https://docs.racket-lang.org/gui/editor-canvas\_.html#(meth.\_(((lib.\_mred%2Fmain..rkt).\_editor-canvas~25).\_allow-scroll-to-last))](https://docs.racket-lang.org/gui/editor-canvas_.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor-canvas~25%29._allow-scroll-to-last%29%29)

That old experiment probably isn't quite what you want, but it might suggest an implementation approach.

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [April 22, 2022, 5:38pm UTC](https://racket.discourse.group/t/overscroll-in-drracket/914/4 "2022-04-22T17:38:52Z")

</div>

Yes, absolutely! Many thanks.
