Table of Contents

Method IsDoubleClickContinuationOf

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

IsDoubleClickContinuationOf(in MouseEventArgsSnapshot, AbstractControl)

Determines whether the current mouse event is a continuation of a double-click sequence that began with the specified previous mouse event on the given control.

public readonly bool IsDoubleClickContinuationOf(in MouseEventArgsSnapshot previous, AbstractControl control)

Parameters

previous MouseEventArgsSnapshot

A snapshot of the previous mouse event to compare against the current event.

control AbstractControl

The control on which the mouse events occurred. Used to determine if the double-click sequence is relevant to this control.

Returns

bool

true if the current mouse event is considered a continuation of a double-click sequence that started with the previous event on the specified control; otherwise, false.

Remarks

This method checks that the previous event occurred on the same control, involved the same mouse button, occurred within the system-defined double-click time and spatial threshold, and that the current event satisfies all criteria for being part of a double-click sequence.