mkremins / flense

Edit trees, not text
MIT License
101 stars 3 forks source link

Autoscroll viewport to keep selected sexp visible #2

Open mkremins opened 10 years ago

mkremins commented 10 years ago

When the selection moves from one sexp to another, Flense should check to see if the newly selected sexp is visible in the current viewport. If it is not, the newly selected sexp should be automatically scrolled into view.

mkremins commented 10 years ago

The new token-stream rendering model (see #15) has introduced a regression here. This functionality will need to be reimplemented.

mkremins commented 8 years ago

Consider using Element.scrollIntoView for this.