本文整理汇总了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();
}