Skip to content

trustcruit/draggabilly-scrollabilly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Draggabilly-ps

A little fork from Draggabilly and Sirgallifrey that implements scale, mouse wheel scroll and auto-scrolling Don't forget to check David DeSandro's awesome original Draggabilly

draggabilly.desandro.com

For draggabily documentation refer to: draggabilly.desandro.com

New available options:

var $draggable = $('.draggable').draggabilly({
  parentScroll: 'selector', // element, string or bool. Parent scrolling element, true is for parentNode.
  autoScroll: false, // bool, enable autoScroll. Only verticall autoscrolling ATM, open an issue if you need horizontal too.
  autoScrollThreshold: 30, // int. threshold from parentScroll borders to start autoscrolling
  scrollSpeed: 10 // int, autoScrolling speed
})

New Methods

Set and Get scale.

useful when inside and scaled element

// jQuery
$draggable.draggabilly('setScale', SCALE)
$draggable.draggabilly('getScale')
// vanilla JS
draggie.setScale(SCALE)
draggie.getScale()

Draggabilly-ps is released under the MIT License. Have at it.

Packages

No packages published

Languages

  • JavaScript 69.0%
  • HTML 29.3%
  • CSS 1.7%