Hi,
I have simple menu that I want to drag from 5% of the screen to 100%.
// changing this to "100%" does not work
var maxX = 320
Draggable.create(".menu", {
type:"x",
throwProps:true,
edgeResistance: 1,
maxDuration:0.3,
bounds: {maxX:maxX, minX:0},
snap: {
x: [0, maxX]
}
});
The menu works fine if I supply a pixel value for the bounds and snap points. It is possible to use % ?
thanks,
Gareth