Jump to content


  • Posts

  • Joined

  • Last visited

gibo's Achievements



  1. gibo

    draggable set x y

    Apologies if this is in the docs somewhere, but is there a way to set the initial draggable position?
  2. gibo

    draggable ie8

    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?
  3. Indeed it is, many thanks. I couldn't find this in the docs, perhaps an example should be added to the Draggable documentation. Thanks again.
  4. 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.