Fix event handlers for paperjs/paper.js#409

This is to fix https://github.com/paperjs/paper.js/issues/409.