pisi/Reel — Issue #82: Custom Graph function can't do circular drag
Author: Barnabas
Created: 2011-12-08 22:03:51+00:00
State: open

While user testing this Reel plugin, we noticed that some users tried to grab the actual item in the picture and drag it around in a circular motion. This works as long as they are on the top half of the image, but the direction unexpectedly reverses as soon as they cross over to the bottom half.

To address this, I wanted to extend this plugin with a custom graph function, so that instead of using a fraction of the X position, I'd return a fraction of degrees around the center point, allowing a circular drag motion. However, the graph function only takes a single dimension, X or Y depending on current orientation. So, can/should the graph function have a 2-dimensional point parameter? Or should Reel naively understand the degrees from center? Or, have I misunderstood the graph function?