mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Some broadcast list fixes
- При скроллинге вниз на странице с аудио вкладки не идут за вами (баговано) - Теперь перемешка списка друзей на странице аудио должна работать нормально
This commit is contained in:
parent
1632d54d52
commit
08499cd3b4
2 changed files with 4 additions and 4 deletions
|
@ -1267,8 +1267,6 @@ class User extends RowModel
|
|||
$entityIds[] = $_rel->model == "openvk\\Web\\Models\\Entities\\Club" ? $_rel->target * -1 : $_rel->target;
|
||||
}
|
||||
|
||||
$entityIds = array_slice($entityIds, 0, 10);
|
||||
|
||||
if($shuffle) {
|
||||
$shuffleSeed = openssl_random_pseudo_bytes(6);
|
||||
$shuffleSeed = hexdec(bin2hex($shuffleSeed));
|
||||
|
@ -1276,6 +1274,8 @@ class User extends RowModel
|
|||
$entityIds = knuth_shuffle($entityIds, $shuffleSeed);
|
||||
}
|
||||
|
||||
$entityIds = array_slice($entityIds, 0, 10);
|
||||
|
||||
$returnArr = [];
|
||||
|
||||
foreach($entityIds as $id) {
|
||||
|
|
|
@ -651,10 +651,10 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
entries.forEach(x => {
|
||||
if(x.isIntersecting) {
|
||||
document.querySelector('.bigPlayer').classList.remove("floating")
|
||||
document.querySelector('.searchOptions .searchList').classList.remove("floating")
|
||||
//document.querySelector('.searchOptions .searchList').classList.remove("floating")
|
||||
document.querySelector('.bigPlayerDetector').style.marginTop = "0px"
|
||||
} else {
|
||||
document.querySelector('.searchOptions .searchList').classList.add("floating")
|
||||
//document.querySelector('.searchOptions .searchList').classList.add("floating")
|
||||
document.querySelector('.bigPlayer').classList.add("floating")
|
||||
document.querySelector('.bigPlayerDetector').style.marginTop = "46px"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue