Skip to content

Commit a3bb933

Browse files
committed
fix anchor links in readme
1 parent 6bf4937 commit a3bb933

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This prop will override any value given to heightRelativeToParent when setting t
6464
- **minScrollHandleHeight** : number, sets the mimimum height of the scroll handle. Default is 38, as in Chrome on OSX.
6565
- **rtl** : boolean, default false. Right to left document, will place the custom scrollbar on the left side of the content, and assume the native one is also there.
6666
- **scrollTo**: number, default undefined. Will scroll content to the given value.
67-
- **keepAtBottom**: boolean, default false. For dynamic content, will keep the scroll position at the bottom of the content, when the content changes, if the position was at the bottom before the change. [See example here](http://rommguy.github.io/react-custom-scroll/example/demo.html?dynamic=true)
67+
- **keepAtBottom**: boolean, default false. For dynamic content, will keep the scroll position at the bottom of the content, when the content changes, if the position was at the bottom before the change. [See example here](http://rommguy.github.io/react-custom-scroll/example/demo.html#with-dynamic-content)
6868
- **className**: string, default undefined. Allows adding your own class name to the root element.
6969

7070
##### Example for heightRelativeToParent
@@ -87,7 +87,7 @@ starting with lower case causes JSX to treat the tag as a native dom element
8787
- You can use CustomScroll types by installing @types/react-custom-scroll from npm
8888

8989
### Usage with flexbox
90-
##### See a [demo with Flex](http://rommguy.github.io/react-custom-scroll/example/demo.html?flex=true) ###
90+
##### See a [demo with Flex](http://rommguy.github.io/react-custom-scroll/example/demo.html#with-flex) ###
9191
There are some details that apply when using customScroll on elements with size set by css flex.
9292
Here is an example for an HTML structure before using customScroll:
9393

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// vite.config.ts
2+
import { defineConfig } from "file:///Users/guyromm/myprojects/react-custom-scroll-revamp/node_modules/vite/dist/node/index.js";
3+
import react from "file:///Users/guyromm/myprojects/react-custom-scroll-revamp/node_modules/@vitejs/plugin-react-swc/index.mjs";
4+
import path from "path";
5+
import dts from "file:///Users/guyromm/myprojects/react-custom-scroll-revamp/node_modules/vite-plugin-dts/dist/index.mjs";
6+
var __vite_injected_original_dirname = "/Users/guyromm/myprojects/react-custom-scroll-revamp";
7+
var vite_config_default = defineConfig({
8+
build: {
9+
lib: {
10+
entry: path.resolve(__vite_injected_original_dirname, "index.ts"),
11+
name: "react-custom-scroll",
12+
fileName: (format) => `index.${format}.js`
13+
},
14+
rollupOptions: {
15+
external: ["react", "react-dom"],
16+
output: {
17+
globals: {
18+
react: "React",
19+
"react-dom": "ReactDOM"
20+
}
21+
}
22+
},
23+
sourcemap: true,
24+
emptyOutDir: true
25+
},
26+
plugins: [react(), dts()]
27+
});
28+
export {
29+
vite_config_default as default
30+
};
31+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvZ3V5cm9tbS9teXByb2plY3RzL3JlYWN0LWN1c3RvbS1zY3JvbGwtcmV2YW1wXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCIvVXNlcnMvZ3V5cm9tbS9teXByb2plY3RzL3JlYWN0LWN1c3RvbS1zY3JvbGwtcmV2YW1wL3ZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9Vc2Vycy9ndXlyb21tL215cHJvamVjdHMvcmVhY3QtY3VzdG9tLXNjcm9sbC1yZXZhbXAvdml0ZS5jb25maWcudHNcIjtpbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tIFwidml0ZVwiO1xuaW1wb3J0IHJlYWN0IGZyb20gXCJAdml0ZWpzL3BsdWdpbi1yZWFjdC1zd2NcIjtcbmltcG9ydCBwYXRoIG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