improved touch management, can now cancel click event if too much offset