Szerkesztés

Megosztás a következőn keresztül:


UIScrollView.DelaysContentTouches Property

Definition

Specifies whether the UIScrollView can delay input to attempt to determine if a scrolling gesture has been made

public virtual bool DelaysContentTouches { [Foundation.Export("delaysContentTouches")] get; [Foundation.Export("setDelaysContentTouches:")] set; }
member this.DelaysContentTouches : bool with get, set

Property Value

Default is true

Attributes

Remarks

When set to the default value true, the UIScrollView determines whether a scrolling gesture has been made by triggering a brief timer when the application user touches the screen. If the finger moves before the timer expires, the UIScrollView interprets the gesture as a scrolling gesture and does not forward the event to the underlying content view. This can introduce a noticeable delay when used with components that are expected to be highly responsive (e.g., buttons).

If set to false, touches immediately trigger TouchesShouldBegin(NSSet, UIEvent, UIView) and are forwarded to the underlying UIView if one is immediately below the touch location. In this situation, the UIScrollView will not automatically detect and respond appropriately if the touch was the beginning of a scrolling, panning, or pinch-to-zoom gesture.

Applies to