mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
11 lines
428 B
JavaScript
11 lines
428 B
JavaScript
|
|
||
|
window.addEventListener("ContentStart", function(evt) {
|
||
|
// Enable touch event shim on desktop that translates mouse events
|
||
|
// into touch ones
|
||
|
let require = Cu.import("resource://gre/modules/devtools/Loader.jsm", {})
|
||
|
.devtools.require;
|
||
|
let { TouchEventHandler } = require("devtools/touch-events");
|
||
|
let touchEventHandler = new TouchEventHandler(shell.contentBrowser);
|
||
|
touchEventHandler.start();
|
||
|
});
|