From 5a7095154c00ab831e87cdbe4ab799dbe9812222 Mon Sep 17 00:00:00 2001 From: Step7750 Date: Wed, 15 Nov 2023 12:44:45 -0700 Subject: [PATCH 1/2] Temporarily Disables Changing Page Size Automatically See https://twitter.com/csfloatcom/status/1724684828388610091 --- src/lib/components/market/page_size.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/components/market/page_size.ts b/src/lib/components/market/page_size.ts index 8445b222..ecafabfb 100644 --- a/src/lib/components/market/page_size.ts +++ b/src/lib/components/market/page_size.ts @@ -39,7 +39,8 @@ export class PageSize extends FloatElement { // ie. "https://steamcommunity.com/market/listings/730/AK-47%20%7C%20Slate%20%28Field-Tested%29?start=100&count=100" // Steam already has a bug that pagination doesn't work when setting this. if (size && !hasQueryParameter('start')) { - this.changePageSize(size); + // Temporarily disable changing page size (https://twitter.com/csfloatcom/status/1724684828388610091) + // this.changePageSize(size); } } @@ -50,7 +51,7 @@ export class PageSize extends FloatElement { changePageSize(newSize: number) { this.selectedSize = newSize; g_oSearchResults.m_cPageSize = newSize; - g_oSearchResults.GoToPage(0, true); + g_oSearchResults.GoToPage(0, false); Set(PAGE_SIZE, newSize); } From b0770a6d246de046bfaed2277020a2ac2bce1ccf Mon Sep 17 00:00:00 2001 From: Step7750 Date: Wed, 15 Nov 2023 12:45:57 -0700 Subject: [PATCH 2/2] Revert --- src/lib/components/market/page_size.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/market/page_size.ts b/src/lib/components/market/page_size.ts index ecafabfb..3065a6b8 100644 --- a/src/lib/components/market/page_size.ts +++ b/src/lib/components/market/page_size.ts @@ -51,7 +51,7 @@ export class PageSize extends FloatElement { changePageSize(newSize: number) { this.selectedSize = newSize; g_oSearchResults.m_cPageSize = newSize; - g_oSearchResults.GoToPage(0, false); + g_oSearchResults.GoToPage(0, true); Set(PAGE_SIZE, newSize); }