scrollview scroll position or scrollTop

How do I find the scroll top of a scrollview with a div in it?
I’m using a scrollview to make a div scrollable (iPad), which works fine, but the div contains many fixed-position elements. I want to be able to detect which one a user has touched by the touched pixel-position, but this will be offset by the scroll position. In a normal scrollable div, I would just use -div.scrollTop. How is this done in dhtmlxTouch?

There is scrollState() method. It returns object with x and y scroll position:

var pos = $$(“viewId”).scrollState();
var scrollTop = pos.y;