add an event listening function wrapper for dots-canvas