Permalink
Browse files

Merge pull request #29 from brunjo/master

position:absolute problem fixed and changing input value with numpad
  • Loading branch information...
2 parents 31c0036 + f17866e commit 91baa0760dfe3873f8aaff52728361ec9a4a1770 @aterrien committed May 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/jquery.knob.js
View
@@ -162,7 +162,7 @@ $(function () {
this.startDrag = function (e) {
- var p = c.position()
+ var p = c.offset()
,$doc = $(document);
x = p.left + (opt.width / 2);
@@ -361,6 +361,7 @@ $(function () {
"keydown"
,function (e) {
var kc = e.keyCode;
+ if (kc >= 96 && kc <= 105) kc -= 48; //numpad
kval = parseInt(String.fromCharCode(kc));
if (isNaN(kval)) {

0 comments on commit 91baa07

Please sign in to comment.