Changeset 7605


Ignore:
Timestamp:
01/28/19 05:28:11 (5 months ago)
Author:
rohit_tandon
Message:

-> Scrolling interval through mouse scrolling is reduced to improve scrolling experience.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/ProjectView/ContentView.cs

    r7604 r7605  
    56655665                if (interval > 10) 
    56665666                    interval = 10; 
    5667                 ScrollMStripsPanel(increment * interval, false); 
     5667                int totalInterval = increment * interval; 
     5668                if (e.Delta < 0 && totalInterval > mHScrollBar.Location.Y) 
     5669                { 
     5670                    totalInterval = mHScrollBar.Location.Y; 
     5671                } 
     5672                else if (e.Delta > 0 && totalInterval < mHScrollBar.Location.Y) 
     5673                { 
     5674                    totalInterval = mHScrollBar.Location.Y * -1; 
     5675                } 
     5676 
     5677                //New Approach 
     5678                ScrollMStripsPanel(totalInterval, false); 
     5679 
     5680 
     5681                //Old Approach 
     5682                //ScrollMStripsPanel(increment * interval, false); 
    56685683            } 
    56695684            //Console.WriteLine ( "mouse wheel scrolling " + increment + " " + interval); 
Note: See TracChangeset for help on using the changeset viewer.