Wheel event
I dont know why when I use the function wheel () the scrollbar moves to a certain point and then jumps. can you send me any ideas and help.
function wheel()
{
//calculate the altitude of the schuifbalk
// bereken de hoogte van de schuifbalk
rulerH = scrollH - (dragH); //change
//number of page steps by dragStep variable
// Aantal pagina stappen
dragStep = scrollH /(contentH / rulerH); // change to - Synhronise the content height with the ruller height with the and *3 step size durring scroll
nWaarde = nWaarde + event.wheelDelta;
if( oldWaarde < nWaarde)
{
nWaarde = oldWaarde; //change to new nwaarde
dragT = dragT - dragStep/10;
contentT = contentT + dragStep;
if (contentT > 0 )
{
contentT = 0;
dragT = rulerT - 2;
}
moveTo();
}
|