本文整理匯總了C#中jQueryApi.jQueryEvent.StopPropagation方法的典型用法代碼示例。如果您正苦於以下問題:C# jQueryEvent.StopPropagation方法的具體用法?C# jQueryEvent.StopPropagation怎麽用?C# jQueryEvent.StopPropagation使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類jQueryApi.jQueryEvent
的用法示例。
在下文中一共展示了jQueryEvent.StopPropagation方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Wheel
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: Scrub
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: Page
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: LineNear
private void LineNear(jQueryEvent e)
{
if (!_disabled)
StartScroll(_scrollableAxis.MoveLineNear);
e.PreventDefault();
e.StopPropagation();
}
示例5: OnMouseUpDocument
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: OnMouseMoveDocument
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();
}