Update core.js

Distinguish between tap and click, avoiding overly sensitive trigger.