Bug 309538 Autoscroll indicator should show possible scrolling directions

r=db48x, sr=neil, icons by neil


git-svn-id: svn://10.0.0.236/trunk@182688 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cst%andrew.cmu.edu
2005-10-21 03:50:13 +00:00
parent 2eb72d5d58
commit 76d8d8e60e
9 changed files with 30 additions and 2 deletions

View File

@@ -102,3 +102,9 @@
padding: 0px;
background-image: url("chrome://communicator/skin/icons/autoscroll.gif");
}
#autoscroller[scrolldir="NS"] {
background-image: url("chrome://communicator/skin/icons/autoscroll-ns.gif");
}
#autoscroller[scrolldir="EW"] {
background-image: url("chrome://communicator/skin/icons/autoscroll-ew.gif");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

View File

@@ -56,6 +56,8 @@ classic.jar:
skin/classic/communicator/brand/throbber16-single.gif (communicator/brand/throbber16-single.gif)
skin/classic/communicator/brand/throbber16-anim.gif (communicator/brand/throbber16-anim.gif)
skin/classic/communicator/icons/autoscroll.gif (communicator/icons/autoscroll.gif)
skin/classic/communicator/icons/autoscroll-ns.gif (communicator/icons/autoscroll-ns.gif)
skin/classic/communicator/icons/autoscroll-ew.gif (communicator/icons/autoscroll-ew.gif)
skin/classic/communicator/icons/offline.gif (communicator/icons/offline.gif)
skin/classic/communicator/icons/online.gif (communicator/icons/online.gif)
skin/classic/communicator/icons/search-act.gif (communicator/icons/search-act.gif)

View File

@@ -99,3 +99,9 @@
padding: 0px;
background-image: url("chrome://communicator/skin/icons/autoscroll.gif");
}
#autoscroller[scrolldir="NS"] {
background-image: url("chrome://communicator/skin/icons/autoscroll-ns.gif");
}
#autoscroller[scrolldir="EW"] {
background-image: url("chrome://communicator/skin/icons/autoscroll-ew.gif");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

View File

@@ -29,6 +29,8 @@ modern.jar:
skin/modern/communicator/directory/file-icon.gif (communicator/directory/file-icon.gif)
skin/modern/communicator/directory/directory.css (communicator/directory/directory.css)
skin/modern/communicator/icons/autoscroll.gif (communicator/icons/autoscroll.gif)
skin/modern/communicator/icons/autoscroll-ns.gif (communicator/icons/autoscroll-ns.gif)
skin/modern/communicator/icons/autoscroll-ew.gif (communicator/icons/autoscroll-ew.gif)
skin/modern/communicator/icons/loading.gif (communicator/icons/loading.gif)
skin/modern/communicator/icons/lock-broken.gif (communicator/icons/lock-broken.gif)
skin/modern/communicator/icons/lock-insecure.gif (communicator/icons/lock-insecure.gif)

View File

@@ -605,9 +605,22 @@ function startScrolling(event)
document.documentElement.appendChild(gAutoScrollPopup);
}
gScrollingView = event.originalTarget.ownerDocument.defaultView;
var scrollingDir;
if (gScrollingView.scrollMaxX > 0) {
gAutoScrollPopup.setAttribute("scrolldir", gScrollingView.scrollMaxY > 0 ? "NSEW" : "EW");
}
else if (gScrollingView.scrollMaxY > 0) {
gAutoScrollPopup.setAttribute("scrolldir", "NS");
}
else {
gScrollingView = null; // abort scrolling
return;
}
document.popupNode = null;
gAutoScrollPopup.showPopup(document.documentElement, event.screenX, event.screenY,
"popup", null, null);
"popup", null, null);
gIgnoreMouseEvents = true;
gStartX = event.screenX;
gStartY = event.screenY;
@@ -617,7 +630,6 @@ function startScrolling(event)
addEventListener('mouseup', handleMouseUpDown, true);
addEventListener('mousedown', handleMouseUpDown, true);
gAutoScrollTimer = setInterval(autoScrollLoop, 10);
gScrollingView = event.originalTarget.ownerDocument.defaultView;
}
function handleMouseMove(event)