added custom event

in order to trigger the webgl movement used custom events.