on page load w/o find, forget previous find (making just removing find and reloading work as expected) ... fixes #207

This commit is contained in:
rolux 2012-02-19 15:18:21 +00:00
parent 7398993bc1
commit 5204fc6521
2 changed files with 12 additions and 5 deletions

View file

@ -126,6 +126,12 @@ pandora.URL = (function() {
if (!state.item) {
set.find = state.find;
}
} else {
if (!pandora.$ui.appPanel) {
// on page load without find, clear find, so that
// removing query and reloading works as expected
set.find = pandora.site.user.ui.find;
}
}
Ox.Request.cancel();

View file

@ -379,7 +379,8 @@ pandora.ui.home = function() {
scrollToPosition(position - 1, true);
},
mouserepeat: function() {
if (counter++ % 10 == 0) {
// fixme: arbitrary
if (counter++ % 5 == 0) {
scrollToPosition(position - 1, false);
}
}
@ -403,9 +404,8 @@ pandora.ui.home = function() {
scrollToPosition(position + 1, true);
},
mouserepeat: function() {
Ox.print('---------------------------')
if (counter++ % 10 == 0) {
Ox.print('YES')
// fixme: arbitrary
if (counter++ % 5 == 0) {
scrollToPosition(position + 1, false);
}
}
@ -427,7 +427,8 @@ pandora.ui.home = function() {
});
},
mousewheel: function(e, delta, deltaX, deltaY) {
Ox.print('mwd', deltaX)
Ox.print('mwd', deltaX);
// fixme: arbitrary
scrollToPosition(position + Math.round(deltaX * 2), true);
}
});