Jump to content
Search Community

gibo

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by gibo

  1. I've been draggable with the throwprops plugin.

     

    I just wanted some clarification on how it works in IE8.

     

    I've set it up like this:

     

    Draggable.create($('.container'), {type:"x,y", throwProps:true, lockAxis:false, throwResistance: 0});

     

    Currently I'm trying to get the position of the container after it's been dragged.

     

    I do that like this:

     

    $('.container).position().left

    and like this:

    $('.container).css('left')

     

    Both of these calls return zero, is the container being moved around with a different property?

  2. I'm not sure if this is a bug, or that I'm doing something slightly wrong.

     

          Draggable.create(".viewport", {type:"scroll",
            throwProps:true,
            onDragEnd:function() {
              console.log("velocity is: " + ThrowPropsPlugin.getVelocity(this.target, "scroll") + " and the duration is " + this.tween.duration() + " seconds.");
            }
          });
     
    Using the property scroll always returns NaN, using another property such as rotation works as expected.
×
×
  • Create New...