Yes, sendNativeTouchPoint should work on platforms where APZ is not
enabled, but sendNativeTouchPoint itself is only supported on a couple
of platforms, see
http://mxr.mozilla.org/mozilla-central/source/dom/interfaces/base/nsIDOMWindowUtils.idl?rev=6846ace10478#673

Cheers,
kats

On Thu, Sep 24, 2015 at 11:54 AM, Ting-Yu Lin <[email protected]> wrote:
> Can we use sendNativeTouchPoint() on platforms where APZ is not enabled?
>
> BTW, I just realize that I can use nsIDOMWindowUtils APIs as follows to
> simulate a long-tap to select a word in marionette test on desktop with the
> needed modification to nsContentUtils::SendMouseEvent() to support
> 'mouselongtap'.
>
> sendTouchEvent('touchstart', ...)
> sendMouseEvent('mouselongtap', ...)
> sendTouchEvent('touchend', ...)
>
> Ting-Yu
>
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to