From 178c5add94f721fa082e735606dc8a391b341a62 Mon Sep 17 00:00:00 2001 From: David Golden Date: Mon, 29 Mar 2021 14:20:50 -0600 Subject: [PATCH 1/4] Check if the status of whether scrolling is possible has changed, and if it has force a re-render. This handles the condition of permanentTracks enabled because otherwise we're depending on trackVisibility changing to trigger a re-render. --- src/Scrollbar.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Scrollbar.tsx b/src/Scrollbar.tsx index 4bf0155..b3eb494 100644 --- a/src/Scrollbar.tsx +++ b/src/Scrollbar.tsx @@ -746,6 +746,12 @@ export default class Scrollbar extends React.Component Date: Mon, 29 Mar 2021 14:32:36 -0600 Subject: [PATCH 2/4] add prepare script to install fork correctly --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 5aa1c9b..7c4b39f 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,7 @@ "test": "cross-env NODE_ENV=production karma start", "preversion": "npm run format && npm run build", "prepublishOnly": "npm run format && npm run test && npm run build", + "prepare": "npm run format && npm run test && npm run build", "push-codacy-coverage": "cat ./coverage/lcov.info | codacy-coverage" }, "prettier": { From 24b4f7aca6705809e609e11f64ce93cf5f42222e Mon Sep 17 00:00:00 2001 From: David Golden Date: Mon, 29 Mar 2021 14:33:52 -0600 Subject: [PATCH 3/4] really only need the build part --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7c4b39f..78aa257 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "test": "cross-env NODE_ENV=production karma start", "preversion": "npm run format && npm run build", "prepublishOnly": "npm run format && npm run test && npm run build", - "prepare": "npm run format && npm run test && npm run build", + "prepare": "npm run build", "push-codacy-coverage": "cat ./coverage/lcov.info | codacy-coverage" }, "prettier": { From edae1b62d1238a3679a42e292afa1d0f3f1384f1 Mon Sep 17 00:00:00 2001 From: David Golden Date: Mon, 29 Mar 2021 14:37:11 -0600 Subject: [PATCH 4/4] revert for PR after testing in own app --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 78aa257..5aa1c9b 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,6 @@ "test": "cross-env NODE_ENV=production karma start", "preversion": "npm run format && npm run build", "prepublishOnly": "npm run format && npm run test && npm run build", - "prepare": "npm run build", "push-codacy-coverage": "cat ./coverage/lcov.info | codacy-coverage" }, "prettier": {