How to move popup window while user scroll window using gesture detector
<p>I am placing popup window while user scroll the window using gesture detector but its not updating correct possistion can anybody tell how to do? can anybody tell how to update posistion</p>

<pre><code>public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
            float distanceY) {


        if(e1.getX() &gt; e2.getX())
        {
                window.update((int)e1.getX(), (int)e1.getY(), -1, -1);

        }
        else
        {
            window.update((int)e2.getX(), (int)e2.getY(), -1, -1);

        }
</code></pre>
