Tweaked interaction example

made use of mouseupoutside and touchendoutside