Jump to content
Search Community

rate for dragging when selecting text?

erikb test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Does this community have any insight regarding the rate at which content in a scrollable element moves when selecting text and dragging beyond the element's container?

 

For example, if you select some text from the top here with your mouse:

http://www.gutenberg.org/cache/epub/52512/pg52512.txt

and then drag down out of the browser window, your selection is automagically extended while you scroll.  Moves a little slower when you are closer to the boundaries.  Seems to reach a maximum velocity at a certain distance.

 

I want to know what the rules for that scroll rate are.  I want to re-create that functionality with greensock.

 

Tech note: the reason I want to re-create it and not use that functionality 'out-of-the-box' from the browser is that for other technical reasons I need to return false / preventDefault on the mouseDown event.  This prevents the auto-scrolling.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...