[haiku-development] Re: Scrolling with child views - bug or feature?

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 17 Jul 2009 17:22:44 +0200

On 2009-07-17 at 16:50:11 [+0200], Rene Gollent <anevilyak@xxxxxxxxx> wrote:
> On Fri, Jul 17, 2009 at 2:42 PM, Ingo Weinhold<ingo_weinhold@xxxxxx> 
> wrote:
> > IMO for this to have any meaning in any other than the "my parent is a 
> > child of a scroll view" case, one would have to recursively consider 
> > all ancestors up to the window.
> 
> Alternatively, wouldn't it be feasible to ask the app_server for that 
> information directly? Since it's obviously already capable of computing 
> that, since otherwise it wouldn't be able to send correct transits for 
> MouseMoved et al.

The app_server computes this on demand only, and it does so using similar 
code to what I posted. It would only be a waste of resources to communicate 
to the app_server like that. Much quicker to calculate it client side, 
although it would mean to duplicate code. With the addition of "BView* 
lookingFrom", it wouldn't purely be a duplication, though.

Best regards,
-Stephan

Other related posts: