mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 14:27:59 +01:00
Fix wheel scrolling in the MOW.
--HG-- extra : transplant_source : %BD%8C6%3DN%BB%CF%BB%9C.%1Cc%D7vpV%A2v%C3%06
This commit is contained in:
@@ -12,6 +12,7 @@ var CommandWidgets = Class("CommandWidgets", {
|
||||
init: function () {
|
||||
let _status = "dactyl-statusline-field-";
|
||||
|
||||
XML.ignoreWhitespace = true;
|
||||
util.overlayWindow(window, {
|
||||
append: <e4x xmlns={XUL} xmlns:dactyl={NS}>
|
||||
<window id={document.documentElement.id}>
|
||||
@@ -166,10 +167,9 @@ var CommandWidgets = Class("CommandWidgets", {
|
||||
let fontSize = util.computedStyle(document.documentElement).fontSize;
|
||||
styles.registerSheet("resource://dactyl-skin/dactyl.css");
|
||||
styles.system.add("font-size", "dactyl://content/buffer.xhtml",
|
||||
"body { font-size: " + fontSize + "; }");
|
||||
},
|
||||
cleanup: function cleanup() {
|
||||
styles.unregisterSheet("resource://dactyl-skin/dactyl.css");
|
||||
"body { font-size: " + fontSize + "; } \
|
||||
html|html > xul|scrollbar { visibility: collapse !important; }",
|
||||
true);
|
||||
},
|
||||
addElement: function (obj) {
|
||||
const self = this;
|
||||
@@ -474,6 +474,9 @@ var CommandLine = Module("commandline", {
|
||||
dactyl.trapErrors(callback, self, value != null ? value : commandline.command);
|
||||
}
|
||||
},
|
||||
cleanup: function cleanup() {
|
||||
styles.unregisterSheet("resource://dactyl-skin/dactyl.css");
|
||||
},
|
||||
|
||||
/**
|
||||
* Determines whether the command line should be visible.
|
||||
|
||||
@@ -212,6 +212,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
bell: document.getElementById("dactyl-bell"),
|
||||
strut: document.getElementById("dactyl-bell-strut")
|
||||
}
|
||||
XML.ignoreWhitespace = true;
|
||||
if (!elems.bell)
|
||||
util.overlayWindow(window, {
|
||||
objects: elems,
|
||||
|
||||
@@ -39,6 +39,7 @@ var StatusLine = Module("statusline", {
|
||||
]]>)({ padding: util.OS.isMacOSX ? "padding-right: 10px !important;" : "" }));
|
||||
}
|
||||
|
||||
XML.ignoreWhitespace = true;
|
||||
let _commandline = "if (window.dactyl) return dactyl.modules.commandline";
|
||||
let prepend = <e4x xmlns={XUL} xmlns:dactyl={NS}>
|
||||
<statusbar id="status-bar" highlight="StatusLine">
|
||||
|
||||
Reference in New Issue
Block a user