Crestron Components Lib - Showcase App

ch5-image: sendEventOnTouch

sendEventOnTouch attribute

Open the browser console to see that a signal named img_touched is sent when a touch event is triggered. The signal is reinforced to true every 500ms and is set to false when touchEnd or touchMove is detected. The browser console should be switched to mobile mode in order to be able to simulate touch events.

<ch5-image
    alt="Backyard image"
    height="200px"
    width="300px"
    url="https://www.crestron.com/Crestron/media/Crestron/GeneralSiteImages/Featured%20Pages/Digital%20Media/point_to_point_tr.jpg"
    sendEventOnTouch="img_touch">
</ch5-image>