Jump to content
Search Community

DRJO

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by DRJO

  1. Been trying a few things out with draggable, trying to simulate an <input: type=range /> component with inertia.

     

    However the problem I find when using inertia with draggable it does not respect the bounds and flies offscreen when thrown, I would assume it would ease to the bounds. 

     

    Apologies if I sound lazy asking maybe a simple question but I am thought I'd use gsap for my project to save time. 

     

    this.dragger = Draggable.create(this.$refs['handle'], {
    type: 'x',
    edgeResistance: 1,
    inertia: true,
    throwResistance: 5000,
    lockAxis: true,
    bounds: '#progressbar',
    onDrag: this.onDrag,
    onThrowUpdate: this.onDrag,
    onThrowComplete: this.onThrowComplete,
    onDragEnd: this.onDragEnd,
    allowNativeTouchScrolling: false,
    zIndexBoost: false,
    overshootTolerance: 0.5
    })
×
×
  • Create New...