igongora / UIDropDown

An elegant dropdown for iOS written in Swift.
MIT License
87 stars 17 forks source link

Tap Delay. #4

Open Maxnelson997 opened 7 years ago

Maxnelson997 commented 7 years ago

The menu won't open, select, or close when tapped. It will however, it will do these things when you hold a tap for a few seconds then let go or tap and slide your finger left or right then release.

Maxnelson997 commented 7 years ago

I fixed it by changing the UIControlEvents parameter in UIDropDown.swift self.addTarget(self, action: #selector(touch), for: .touchUpInside) to self.addTarget(self, action: #selector(touch), for: .touchDown)

igongora commented 7 years ago

Great, but I realize you didn't make a PR. I'll be glad if you can contribute

Maxnelson997 commented 7 years ago

alright! Ill do a little more looking around see if I can fix some stuff.