Bind touch handlers only when it's supported.

Fix #227.