Fixed a crash when canceling background tasks and cleaned up the gesture/click bug fix to have less copy-pasted code
Fixed a crash when canceling background tasks and cleaned up the gesture/click bug fix to have less copy-pasted code

jterhorst/Chameleon