Hi, George.Veivo,
Currently, due to limitation of XWalkView, mXwalkView.setOnTouchListener will 
not work.
We are investigating it and see if there are possible solutions.

As an alternative, you can try override Activity::dispatchTouchEvent like:
    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        super.dispatchTouchEvent(ev);
        Log.i(“XWalkActivity","dispatchTouchEvent");
        return true;
    }


From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of 
George.Veivo
Sent: Tuesday, February 3, 2015 4:08 PM
To: crosswalk-help
Subject: [Crosswalk-help] Capturing Crosswalk touch events

Hi all,

I tried the following ways to capture the touch events on XWalk webview, but 
they are never triggered:‍

             mXwalkView.setOnTouchListener(new View.OnTouchListener() {
            public boolean onTouch(View v, MotionEvent event) {
              return true;
            }
        });‍


            @Override
               public boolean onTouchEvent(MotionEvent event) {
                   return this.detector.onTouchEvent(event);
               }‍

Anyone knows and can tell how to capture the touch events?

Thanks.
George

_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to