[javascript-dev] Re: Re: screentoworld misunderstanding
gusanomaxlist
gusanomaxlist at googlemail.com
Fri Nov 9 11:35:41 MST 2007
- Previous message: [javascript-dev] Re: screentoworld misunderstanding
- Next message: [javascript-dev] Re: Re: screentoworld misunderstanding
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hallo.
I'm bothering you again...
Now I'm stucked on the fine tuning (with shift key).
It's (nearly!!) working, but if I press shift while dragging, I loose my value and the slider is fine tuning but re-starting from zero-left.
Thanx for your hints.
Here is the code:
---------------------------------------------
function ondrag(x,y,...)
...
var f,a,v,dx;
a = sketch.screentoworld(x,y);
v = (a[0]+aspect)/aspect*0.5;
dx = v - last_x*0.2; //(last_x is initiated with 0)
if (shift)
{
f = v - dx;
} else {
f = v;
}
msg_float(f);
last_x = v;
}
---------------------------------------------
- Previous message: [javascript-dev] Re: screentoworld misunderstanding
- Next message: [javascript-dev] Re: Re: screentoworld misunderstanding
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
