forked from 0x2620/pandora
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:
parent
7398993bc1
commit
5204fc6521
2 changed files with 12 additions and 5 deletions
|
@ -126,6 +126,12 @@ pandora.URL = (function() {
|
||||||
if (!state.item) {
|
if (!state.item) {
|
||||||
set.find = state.find;
|
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();
|
Ox.Request.cancel();
|
||||||
|
|
|
@ -379,7 +379,8 @@ pandora.ui.home = function() {
|
||||||
scrollToPosition(position - 1, true);
|
scrollToPosition(position - 1, true);
|
||||||
},
|
},
|
||||||
mouserepeat: function() {
|
mouserepeat: function() {
|
||||||
if (counter++ % 10 == 0) {
|
// fixme: arbitrary
|
||||||
|
if (counter++ % 5 == 0) {
|
||||||
scrollToPosition(position - 1, false);
|
scrollToPosition(position - 1, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -403,9 +404,8 @@ pandora.ui.home = function() {
|
||||||
scrollToPosition(position + 1, true);
|
scrollToPosition(position + 1, true);
|
||||||
},
|
},
|
||||||
mouserepeat: function() {
|
mouserepeat: function() {
|
||||||
Ox.print('---------------------------')
|
// fixme: arbitrary
|
||||||
if (counter++ % 10 == 0) {
|
if (counter++ % 5 == 0) {
|
||||||
Ox.print('YES')
|
|
||||||
scrollToPosition(position + 1, false);
|
scrollToPosition(position + 1, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -427,7 +427,8 @@ pandora.ui.home = function() {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
mousewheel: function(e, delta, deltaX, deltaY) {
|
mousewheel: function(e, delta, deltaX, deltaY) {
|
||||||
Ox.print('mwd', deltaX)
|
Ox.print('mwd', deltaX);
|
||||||
|
// fixme: arbitrary
|
||||||
scrollToPosition(position + Math.round(deltaX * 2), true);
|
scrollToPosition(position + Math.round(deltaX * 2), true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue