Jump to content
Search Community

Search the Community

Showing results for tags 'throwpropsplugin draggable.x'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. This is incredibly fun software to work with. I'm fairly new to JavaScript and your docs and samples have been fantastic. In the Codepen I have a series of rectangles drawn on a canvas. When you drag or throw the canvas the expected rectangle index is shown below the canvas container. In the onThrowComplete handler I set up ThrowPropsPlugin.to so that one of the rectangles stops at the center of the screen. During onThrowUpdate and onThrowComplete I update the expected rectangle index but sometimes the value is off. This can usually be observed by slowly dragging the canvas to the right so that a rectangle almost snaps to the center of the screen. The position is also updated when onClick occurs so then the correct index is observed. Am I not using the code correctly or is there an event I can use that fires when the canvas finally snaps into position?
×
×
  • Create New...