Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

click on waterfall sometime does not produce the correct frequency

#21

If the waterfall zoom is NOT all the way down (ie not zoomed out) then when you click on the waterfall it produces the wrong frequency.

Reported by JohnJames · April 24th, 2010 @ 03:59 PM

State: new
Milestone: none

Activity

  1. JohnJames
    JohnJames

    When XTWaterfallView:: -(void)mouseUp: (NSEvent *)theEvent
    executes after zooming waterfall we get the same value for self.bounds; hence the same offset in freq will occur when zoomed as when not zoomed.

    April 24th, 2010 @ 05:40 PM

  2. mcdermj (at xenotropic)
    mcdermj (at xenotropic)

    The code wasn't properly updated when I implemented the zoom
    function. The coordinates need to be translated from the
    CAScrollLayer that's sitting in the XTWaterfallView. A similar
    operation is done in the XTPanadapterView, I just haven't gotten to
    pushing the changes to XTWaterfallView yet.

    April 24th, 2010 @ 09:12 PM

  3. JohnJames
    JohnJames

    This may not be the correct way but if I divide by zoomFactor it seems to fix the problem.

    transceiverController.frequency += (clickPoint.x - NSMidX(self.bounds)) * hzPerUnit / zoomFactor;

    April 25th, 2010 @ 04:48 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.