diff --git a/mobile/chrome/content/bindings.xml b/mobile/chrome/content/bindings.xml index 3f5f3514c5e5..51cc0a02ffa7 100644 --- a/mobile/chrome/content/bindings.xml +++ b/mobile/chrome/content/bindings.xml @@ -1687,7 +1687,11 @@ if (hasData && (!aTextbox.readOnly || aIgnoreReadOnly)) json.types.push("paste"); - ContextHelper.showPopup({ target: aTextbox, json: json }); + if (ContextHelper.showPopup({ target: aTextbox, json: json })) { + let event = document.createEvent("Events"); + event.initEvent("CancelTouchSequence", true, false); + document.dispatchEvent(event); + } ]]> diff --git a/mobile/chrome/content/input.js b/mobile/chrome/content/input.js index 5382eb891bb0..a7ff039527d9 100644 --- a/mobile/chrome/content/input.js +++ b/mobile/chrome/content/input.js @@ -176,6 +176,7 @@ MouseModule.prototype = { this._targetScrollbox = null; this._targetScrollInterface = null; + this._inputField = null; this._cleanClickBuffer(); },