Could you explain me how to swipe with coordinates when user touch the screen and do a swipe?
I see that when user do a drag on screen i have an output that i have shown with println.
- Code: Select all
browerUI_.addMouseMotionListener(new MouseMotionListener() {
@Override
public void mouseDragged(MouseEvent e) {
System.out.println("Dragged "+e.getX()+" | "+e.getY());
}
});
I've tried with
- Code: Select all
browser_.executeJavaScript("window.scrollTo("+e.getX()+", "+e.getY()+")","", 0);
but i whink that is not correct.
Thank you.