예제 #1
0
파일: ScrollBar.cs 프로젝트: Aethon/odo
        private void Wheel(jQueryEvent e)
        {
            jQueryEventExtras ee = (jQueryEventExtras) (object) e;
            if (ee.WheelDelta >= 120)
                _scrollableAxis.MovePageNear();
            else if (ee.WheelDelta <= -120)
                _scrollableAxis.MovePageFar();

            e.StopPropagation();
            e.PreventDefault();
        }
예제 #2
0
파일: ScrollBar.cs 프로젝트: Aethon/odo
 private void Scrub(jQueryEvent e)
 {
     if (!_disabled)
     {
         _scrubbing = true;
         int curY = e.PageY;
         _grabPoint = curY - _thumb.GetOffset().Top;
         jQuery.Document.MouseMove(_dragHandler);
         jQuery.Document.MouseUp(_stopScrollHandler);
     }
     e.PreventDefault();
     e.StopPropagation();
 }
예제 #3
0
파일: ScrollBar.cs 프로젝트: Aethon/odo
 private void Page(jQueryEvent e)
 {
     if (!_disabled)
     {
         int curY = e.PageY;
         int thumbTop = _thumb.GetOffset().Top;
         if (curY <= thumbTop)
         {
             StartScroll(_scrollableAxis.MovePageNear);
         }
         else
         {
             StartScroll(_scrollableAxis.MovePageFar);
         }
     }
     e.PreventDefault();
     e.StopPropagation();
 }
예제 #4
0
파일: ScrollBar.cs 프로젝트: Aethon/odo
 private void LineNear(jQueryEvent e)
 {
     if (!_disabled)
         StartScroll(_scrollableAxis.MoveLineNear);
     e.PreventDefault();
     e.StopPropagation();
 }
예제 #5
0
 private static void OnMouseUpDocument(jQueryEvent e)
 {
     if (_mouseCaptureHandler == null)
     {
         return;
     }
     _mouseCaptureHandler(MouseCaptureState.End, MakeJQueryPosition(e.PageX, e.PageY));
     _mouseCaptureHandler = null;
     e.PreventDefault();
     e.StopPropagation();
     _jqMouseCaptureGlassBarrier.Hide();
 }
예제 #6
0
 private static void OnMouseMoveDocument(jQueryEvent e)
 {
     if (_mouseCaptureHandler == null)
     {
         return;
     }
     _mouseCaptureHandler(MouseCaptureState.Move, MakeJQueryPosition(e.PageX, e.PageY));
     e.PreventDefault(); // todo: avoid using this. prevents capturing mouse beyond window in IE.
     e.StopPropagation();
 }