> Any DIV or block-level element in HTML, smaller or larger, can have > scrollbars and can scroll the inner content. Now if such a DIV is set to > always be as large as the window and holds the page's content, then what > you really need to scroll is one of the DIV elements in your page.
After reading this paragraph ten times maybe a light came over me. So, let's say something like this: 1) I parse the DOM and encounter a DIV (or HTML block-level element? what you mean? which other elements should I check? please excuse my HTML newbie question :)) 2) I get the DIV scroll extents (scrollH and scrollW) and I check them against... what? Parent client extents? How do I understand that a DIV will be able to scroll its "inside"? I would like, at this point, to detect such elements and save away a pointer to scrollable DIVs, in order to be able to call scroll methods later (i.e. SetScrollTop). 3) the "higher" of these scrollable elements is my "master" scroller (which is not really so important, because... read on) With eyetracking we obviously do not use scrollbars; the idea is to register the extents of these scrolling areas, and when one looks near the borders, it starts scrolling. OK, not so easy, we must use timers and a lot of tricks with multiple overlapping zones, but it worked quite well up to now... thx, Aaron _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
