Draggable

.scrollProxy

.scrollProxy : Object

[read-only] A special object that gets created for type:"scroll" (or "scrollTop" or "scrollLeft") Draggables; this object manages the scrolling behavior, applying the necessary transforms or margins to accomplish overscrolling when necessary.

Details

A special object that gets created for type:"scroll" (or "scrollTop" or "scrollLeft") Draggables; this object manages the scrolling behavior, applying the necessary transforms or margins to accomplish overscrolling when necessary. The scrollProxy object has top() and left()getter/setter methods (and scrollTop()/scrollLeft() which are simply the inverse of top()/left()). If you need to get the scrolling velocity, make sure you've loaded ThrowPropsPlugin and set throwProps:true on the Draggable and then you can useThrowPropsPlugin.getVelocity(yourDraggable.scrollProxy, "top") to get the vertical scrolling velocity (use "left" for horizontal).
Implementation
    public function get scrollProxy():Object

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.

Get GSAP

Version: 2.0.2 updated 2018-08-27

Core

    Extras

      Plugins

        By using GreenSock code, you agree to the terms of use.

        For an all-access pass to premium content

        Join Club GreenSock