Permalink
Browse files

change input value with numpad and position:absolute problem fixed

  • Loading branch information...
1 parent b83cec8 commit f17866efc35b181735c177421e85278f66118cb3 @brunjo brunjo committed May 27, 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);
@@ -360,6 +360,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 f17866e

Please sign in to comment.