gibo
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by gibo
-
-
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?
-
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.
-
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.
draggable set x y
in GSAP
Posted
Apologies if this is in the docs somewhere, but is there a way to set the initial draggable position?