1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 05:37:58 +01:00

Fix wheel scrolling in the MOW.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-24 09:21:31 -05:00
parent 8980c91978
commit 304d4fffd7
6 changed files with 13 additions and 8 deletions

View File

@@ -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.