Touch
Default: No custom action
This event is primarily designed for scripts that use finger based interactions. While it may be configured with something else than a script, this is probably not something useful.
Things to be aware of when writing a touch handler:
- the script for this event has no access to LL.getEvent() but instead can use two implicit parameters "item" (Item class) and "event" (MotionEvent class).
- other configured events (tap, long tap, etc.) are disabled
- methods that can halt and resume a script, such as "alert", are unavailable, calling them will result in an error
- the script should (must?) return true when the event is handled (...even if it will currently do no harm to return any other value or no value at all)
Sample script:
Free hand painting.