Pixate / pixate-freestyle-ios

Pixate Freestyle for iOS
Apache License 2.0
848 stars 134 forks source link

UIButton :highlight state style delay #106

Closed wprater closed 10 years ago

wprater commented 10 years ago

I have a style to darken the color of a button on tap (:highlight), but on the device, the style seems to be delayed.

Is this normal?

angelolloqui commented 10 years ago

I have the exact same behaviour. It is interesting though that if you press and move your finger a bit then the highlighted gets styled immediately.

If I find time today I will take a look to this issue on my own project and share any findings...

angelolloqui commented 10 years ago

After researching a bit I have found the cause of my problem, and it is not Pixate. I wasn't aware that placing a button on the bottom 30px of the screen had an issue known by Apple on highlighted states. The gestures from the control center mess up with the touch. More info here: https://devforums.apple.com/message/865922

wprater commented 10 years ago

nice find. that is really unfortunate as far as UX goes. makes the app feel slow and is no fault of Freestyle. I'll close the bug.

jshier commented 5 years ago

For anyone who winds up on this issue after Googling delayed pressed state, turns out you can fix the issue mentioned here, for which the Apple dev forums link no longer works, by updating the storyboard to use safe areas (ooold project) the button can go into the highlighted state immediately.