Fixed right click not detected on OS X with trackpads

This is a patch for OSX Trackpad Right Click Not Triggered #716.