Quick'n'dirty patch to address touchscreen issues

The code taken from here:

https://github.com/twbs/bootstrap/pull/5067#issuecomment-8604323
Merge pull request #124 from KenYN/patch-1

Quick'n'dirty patch to address touchscreen issues