1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 04:27:58 +01:00

reverted scroll window.content patch for now (untested)

This commit is contained in:
Martin Stubenschrott
2007-07-09 13:27:58 +00:00
parent d7c8bec9c8
commit d1a286e3ce
2 changed files with 5 additions and 4 deletions

View File

@@ -12,4 +12,5 @@ Patches:
* Lee Hinman (:open ./.. support)
* Bart Trojanowski (Makefile)
* Hannes Rist (:set titlestring support)
* Marco Candrian (shift-insert patch)
</pre>

View File

@@ -1299,8 +1299,8 @@ function getCurrentTitle()
function scrollBufferRelative(right, down)
{
//var win = window.document.commandDispatcher.focusedWindow;
var win = window.content;
var win = window.document.commandDispatcher.focusedWindow;
//var win = window.content; // XXX: This would fix scrolling when the tab has focus, but breaks when it has frames --MST
if (vimperator.input.count < 1)
vimperator.input.count = 1;
@@ -1329,8 +1329,8 @@ function scrollBufferRelative(right, down)
/* both values are given in percent, -1 means no change */
function scrollBufferAbsolute(horizontal, vertical)
{
//var win = document.commandDispatcher.focusedWindow;
var win = window.content;
var win = document.commandDispatcher.focusedWindow;
//var win = window.content;
var horiz, vert;
if (horizontal < 0)