Allow for double taps to trigger double clicks even if the second touch is a slight bit off

It is difficult to do two clicks on the exact same position on touch devices, which makes double clicking hard. This patch  allows for a double click to be triggered when two touches occur within 500 milli seconds and closer than 20 pixels together.