Wrox Programmer Forums
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2007, 03:58 AM
Authorized User
 
Join Date: Dec 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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();

 }






Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse Wheel dartcoach VB How-To 0 November 12th, 2006 03:09 PM
Green spinning wheel kavyen Reporting Services 0 October 17th, 2006 02:09 PM
mouse wheel aytacakin Pro JSP 0 November 16th, 2005 04:01 AM
mouse wheel aytacakin Javascript How-To 1 November 15th, 2005 12:10 PM
Mouse Wheel Event BSkelding ASP.NET 1.0 and 1.1 Professional 3 March 30th, 2005 09:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.