Okay. It seems to me like some non scrollable views trigger onclick and onlongclick after a fast or long scroll respectively. That might be the cause of your issue?
Meanwhile, the documentation says to return True if the view has consumed the event, false otherwise.