Skip to content

olivierrr/dom-knob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

dom-knob

Get the angle between the center of an element and a mouse/touch on drag.

install

npm install dom-knob

example

var knob = require('dom-knob')

var elem = document.querySelector('#myKnob')
var callback = function(degrees) {
  console.log(degrees)
}

knob(elem, callback)

About

Get the angle between the center of an element and a mouse/touch on drag.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published