• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: touchesMoved value setting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: touchesMoved value setting


  • Subject: Re: touchesMoved value setting
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 18 Sep 2018 14:01:38 +0100

> On 18 Sep 2018, at 13:44, Eric E. Dolecki <email@hidden> wrote:
>
> I have a UI control that can be adjusted up and down using touch & drag.
> 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?

I’m not sure you’ve described the problem particularly clearly, because when I
read your e-mail I came the conclusion that you just need to divide your
distance by 20, but that can’t be right otherwise you’d have worked it out
yourself…

Kind regards,

Alastair.

--
http://alastairs-place.net

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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 email@hidden

References: 
 >touchesMoved value setting (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: XPC Question
  • Next by Date: Re: touchesMoved value setting
  • Previous by thread: touchesMoved value setting
  • Next by thread: Re: touchesMoved value setting
  • Index(es):
    • Date
    • Thread