Eric E. Dolecki
2018-09-18 12:44:00 UTC
I've been asked to provide a control value based on how far the drag is via
distance. So far so good.
What my designer wants is a value change of every 20 pixels or so (control
is 150px tall @ the moment) - so every 20 pixels = a change of 1. This will
require multiple touch and drags but he's fine with it.
The math is probably simple, but it's eluding me this morning. How can I
easily convert my distance (I also have an increment Bool so I know whether
it's addition or subtraction) to an appropriate value?
Cocoa-dev mailing list (Cocoaemail@example.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to ***@ml-in.narkive.net