I am trying to develop a library of custom widgets, so I'd like to understand this in depth rather than find a solution to this specific example. For this example, lets say swipe events. I accomplished this using a local script but I'd like to package this code within the widget itself for ease of implementation.
... View more