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(); }
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(); }
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(); }
private void LineNear(jQueryEvent e) { if (!_disabled) StartScroll(_scrollableAxis.MoveLineNear); e.PreventDefault(); e.StopPropagation(); }
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(); }
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(); }