Details
-
Type:
New Feature
-
Status: Open
-
Priority:
Low
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Release 10.0.0
Description
Summary:
We should add an "isTrusted" boolean property to all events. This is a standard property available to web developers which is set to true if the event was made by user interaction. It is set false if the event was triggered programmatically. This is mostly useful UI based events.
https://developer.mozilla.org/docs/Web/API/Event/isTrusted
To-Do:
When an event is fired natively, the core code should add an "isTrusted" property if missing and default it to true. Events fired from JavaScript should default to false if the property is not defined.
We should set "isTrusted" to true/false directly for:
- Ti.UI.Picker "change"
- Ti.UI.RefreshControl "beginRefreshing"
- Ti.UI.SearchBar "change"
- Ti.UI.Switch "change"
- Ti.UI.Tab "selected" and "unselected"
Attachments
Issue Links
- relates to
-
TIMOB-27977 TiAPI: Add "isTrusted" property to Ti.UI.Slider "change" event
-
- Closed
-
-
TIMOB-27988 TiAPI: "change" event should not be fired when changed programmatically
-
- Open
-