Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 792223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:57:32+00:00 2026-05-14T21:57:32+00:00

Is there any way to capture the time interval between mouse wheel scroll start

  • 0

Is there any way to capture the time interval between mouse wheel scroll start and stop? Actually I want to capture the interval between the scrolling start and stop when I very quickly scroll the mouse wheel.

I have already looked at MouseWheel event but it don’t fulfill my requirement. In senes that it always gives a value of Delta 120 or -120 but i want to call a function depending on the speed of the mouse scroll for example when i scroll the mouse normally i want to perform function 1 and when i scrolled the mouse very quickly i want to perform the function 2. In other words is there any way to distinguish between the mouse scroll high and normal speed.

Any advice will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:57:33+00:00Added an answer on May 14, 2026 at 9:57 pm

    can’t you capture the mouse wheel events and see how long between them. Basically start a timer when you get a mouse wheel event and then in the next event see what the timer is at (and so how long has elapsed between the events) to determine the speed the wheel is being turned at? If the elapsedtime is smaller than a certain threshold, perform function2 and if it is faster than a certain threshold perform function 1.

    You will probably have to set it to perform function 1 if the timer goes off in case they only do a single scroll.

    In fact you might be able to do it this way:

    start a timer (with an interval that indicates slow mouse wheeling) in the mouse wheel event, then if the timer goes off perform function 1. If the mouse wheel event happens again before the timer has gone off then reset the timer and increment a counter (to keep track of the number in wheel events since you did stuff) then start a second (longer) timer. if the counter is greater then a certain threshold perform function 2. When the second timer elapses, reset the counter. Something along those lines should give you the ability to fire function 1 when slow wheel turning and function 2 when the wheel is rapidly turned through a few ‘clicks’.

    this code should give a (very dirty) indication of the sort of thing I was thinking of. After playing a little I’m not really sure it’s a good solution though….

    private void mouseWheelHandler (object sender, MouseEventArgs e)
        {
        slowTimer.Enabled = false;
        slowTimer.Stop ();            
        slowTimer.Interval = 200;
        slowTimer.Start();
        slowTimer.Enabled = true;
        m_counter++;
        Trace.WriteLine(string.Format("counter={0}", m_counter));
        if (fastTimer.Enabled==false)
            {
            fastTimer.Enabled = true;
            fastTimer.Interval = 150;
            fastTimer.Start ();
            }
        if (m_counter>5)
            {
            Trace.WriteLine("called method 2");
            m_counter = 0;
            fastTimer.Stop ();
            slowTimer.Enabled = false;
            slowCheckTimer.Stop ();                
            slowCheckTimer.Interval = 250;
            slowCheckTimer.Start();
            slowCheckTimer.Enabled = true;
            }
        }
    
    private void slowTimer_Tick(object sender, EventArgs e)
        {
        Trace.WriteLine("slow timer ticked");
        if (slowCheckTimer.Enabled==false)
            {
            Trace.WriteLine ("called method 1");
            }
    
        slowTimer.Enabled = false;
        }
    
    private void fastTimer_Tick(object sender, EventArgs e)
        {
        fastTimer.Enabled = false;
        Trace.WriteLine("fast timer ticked");
        m_counter = 0;
        fastTimer.Stop ();
        }
    
    private void slowCheckTimer_Tick(object sender, EventArgs e)
        {
        Trace.WriteLine("slow check timer ticked");
        slowCheckTimer.Stop ();
        slowCheckTimer.Enabled = false;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.