Jump to content
Search Community

haja

Members
  • Posts

    4
  • Joined

  • Last visited

haja's Achievements

0

Reputation

  1. haja

    Draggable not fluid

    Hello, Thanks for your response, sorry i tested another plugin so why you found there errors, i re-use now the draggable code, i just want a smooth scroll when dragging the container, even i remove the "show and hide" for every drag events, following code is not smooth : The link : http://goo.gl/sXjrb7 Draggable.create(".item", { type:"x", edgeResistance:0.65, bounds:".frises-items", autoScroll:true, //lockAxis:true, throwProps:true, }); when i use the scroll plugin but not the greenshock draggable, this is very smooth : http://goo.gl/2Q3gLI
  2. haja

    Draggable not fluid

    Hello, I cannot put it to codepen unfortunately, but i put a link on my topic where you can see it, thanks again
  3. haja

    Draggable not fluid

    Hello, I attempt to use draggable for one of my project, as you see here it works fine but not fluid, i want tween effect when i drag element. Draggable.create(".item", { type: "x", edgeResistance: 0.65, bounds: ".frises-items", //lockAxis:true, throwProps: true, onDrag: function() { pos = parseInt(this.x); if (pos < 0) { $('.slick-prev').show() } else { $('.slick-prev').hide() } }, onDragEnd: function() { reference = 10880; pos = parseInt(this.x); if (Math.abs(pos) == reference) { $('.slick-next').hide() } else if (Math.abs(pos) < reference) { $('.slick-next').show() } } }); Draggable.get(".item").enable(); Do you have an idea please? Thank you
×
×
  • Create New...