refactor gesture event
rebuild. refactor dd. clean util. Fixes #581