Bug 1422583 - [marionette] Reset double click tracker when releasing actions. r=ato
authorHenrik Skupin <mail@hskupin.info>
Thu, 30 Aug 2018 11:35:04 +0200
changeset 491964 b306b75c312ae63620710fbdb2fd05201297c28f
parent 491963 e9d7d713913290df6f3e1c4a23677b5a96194e81
child 491965 3ec600e74178311e39182f2de58dda01534cdb5b
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1422583
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1422583 - [marionette] Reset double click tracker when releasing actions. r=ato Given that all internal states for the virtual devices are getting cleared when releasing actions, also the timer for double click event detection has to be canceled.
testing/marionette/listener.js
--- a/testing/marionette/listener.js
+++ b/testing/marionette/listener.js
@@ -783,16 +783,18 @@ async function performActions(msg) {
  * as if the state was released by an explicit series of actions. It also
  * clears all the internal state of the virtual devices.
  */
 async function releaseActions() {
   await action.dispatchTickActions(
       action.inputsToCancel.reverse(), 0, curContainer.frame);
   action.inputsToCancel.length = 0;
   action.inputStateMap.clear();
+
+  event.DoubleClickTracker.resetClick();
 }
 
 /**
  * Start action chain on one finger.
  */
 function actionChain(chain, touchId) {
   let touchProvider = {};
   touchProvider.createATouch = createATouch;