r3397 committed - menu: some actual page up/down scrolling, still in dire need for refac...
Revision: 3397
Author: joern.zaefferer
Date: Mon Oct 26 15:18:10 2009
Log: menu: some actual page up/down scrolling, still in dire need for
refactoring
http://code.google.com/p/jquery-ui/source/detail?r=3397
Modified:
/branches/dev/ui/jquery.ui.menu.js
=======================================
--- /branches/dev/ui/jquery.ui.menu.js Mon Oct 26 15:16:57 2009
+++ /branches/dev/ui/jquery.ui.menu.js Mon Oct 26 15:18:10 2009
@@ -102,6 +102,7 @@
// TODO improve approximation
return close < 10 && close > -10;
})
+ // TODO try to catch this earlier when scrollTop indicates the last
page anyway
if (!result.length)
result = this.element.children(":last")
this.activate(result);
@@ -139,6 +140,7 @@
// TODO improve approximation
return close < 10 && close > -10;
})
+ // TODO try to catch this earlier when scrollTop indicates the first
page anyway
if (!result.length)
result = this.element.children(":first")
this.activate(result);