tap threshold for pan; cleanup; ref #636

Conflicts:
	src/core.js