Skip to content

[NUI] Add per-device gesture options and recognition thresholds - #7847

Merged
dongsug-song merged 1 commit into
Samsung:API14from
dongsug-song:api14-0916
Sep 16, 2026
Merged

dongsug-song merged 1 commit into
Samsung:API14from
dongsug-song:api14-0916

Conversation

@dongsug-song

Copy link
Copy Markdown
Contributor

Add GestureDeviceSelector (matches an exact device name, a device class and subclass, or a device class), nested Options types for Pan/Tap/LongPress gesture detectors with GetDefaultOptions, SetDeviceOptions, TryGetDeviceOptions and ClearDeviceOptions, Gesture.DeviceName, and per-device recognition thresholds (PanThresholds, TapThresholds, LongPressThresholds, PinchThresholds, RotationThresholds) exposed through GestureOptions.Instance.

Also expose TapGestureDetector.ReceiveAllTapEvents / IsReceiveAllTapEventsEnabled.

All new members are [EditorBrowsable(EditorBrowsableState.Never)] until ACR.

Adds a DeviceGestureOptionsSample demonstrating the feature: a PanGestureDetector and a TapGestureDetector recognize gestures differently for mouse vs. touch, using detector-local Options (mouse pans restricted to roughly horizontal drags, both allow a double tap) and GestureOptions.Instance per-device thresholds (mouse needs a longer drag before a pan starts and a faster second tap for a double tap than the touch defaults). A touchscreen is not required to see the effect.

Description of Change

API Changes

  • ACR:

Add GestureDeviceSelector (matches an exact device name, a device
class and subclass, or a device class), nested Options types for
Pan/Tap/LongPress gesture detectors with GetDefaultOptions,
SetDeviceOptions, TryGetDeviceOptions and ClearDeviceOptions,
Gesture.DeviceName, and per-device recognition thresholds
(PanThresholds, TapThresholds, LongPressThresholds, PinchThresholds,
RotationThresholds) exposed through GestureOptions.Instance.

Also expose TapGestureDetector.ReceiveAllTapEvents /
IsReceiveAllTapEventsEnabled.

All new members are [EditorBrowsable(EditorBrowsableState.Never)]
until ACR.

Adds a DeviceGestureOptionsSample demonstrating the feature: a
PanGestureDetector and a TapGestureDetector recognize gestures
differently for mouse vs. touch, using detector-local Options
(mouse pans restricted to roughly horizontal drags, both allow a
double tap) and GestureOptions.Instance per-device thresholds (mouse
needs a longer drag before a pan starts and a faster second tap for
a double tap than the touch defaults). A touchscreen is not required
to see the effect.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dongsug-song
dongsug-song requested review from JoogabYun and removed request for bshsqa and hinohie September 16, 2026 06:29
@github-actions github-actions Bot added the API14 Platform : Tizen 11.0 / TFM: net8.0-tizen11.0 label Sep 16, 2026
@TizenAPI-Bot

Copy link
Copy Markdown
Collaborator

Internal API Changed

Added: 104, Removed: 0, Changed: 0

@dongsug-song
dongsug-song merged commit d367686 into Samsung:API14 Sep 16, 2026
3 checks passed
@dongsug-song
dongsug-song deleted the api14-0916 branch September 16, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API14 Platform : Tizen 11.0 / TFM: net8.0-tizen11.0 Internal API Changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants