Discussion:
experimental code: highlighting and scrolling
corvid
2012-10-20 08:41:11 UTC
Permalink
I was thinking how unpleasant it is when you are highlighting text and
you release the button outside the viewport, and the text doesn't get
copied. (Even harder to keep in mind is when the canvas is shorter than
the viewport, and you go past the bottom of the canvas.)


..and then I wanted to see whether I could make the page scroll when
highlighting outside the viewport like firefox does...
Johannes Hofmann
2012-10-21 20:38:51 UTC
Permalink
Post by corvid
I was thinking how unpleasant it is when you are highlighting text and
you release the button outside the viewport, and the text doesn't get
copied. (Even harder to keep in mind is when the canvas is shorter than
the viewport, and you go past the bottom of the canvas.)
..and then I wanted to see whether I could make the page scroll when
highlighting outside the viewport like firefox does...
Nice! I used to press Space to scoll down while keeping the mouse
button pressed. Maybe 6 could be replaced with
scrollbar->linesize()?

Cheers,
Johannes
corvid
2012-10-21 22:34:26 UTC
Permalink
Maybe 6 could be replaced with scrollbar->linesize()?
Yeah, linesize and repeating after 0.025 seems to work well enough
for me...

Loading...