You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 16, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+27-7
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,23 @@
1
1
# Scrollert.js - a cross browser, OSX-like, light weight scrollbar
2
-
[Scrollert.js](https://syslogicnl.github.io/scrollert/) is a jQuery plugin that implements **good-looking and uniform scrollbars** on all browsers, platforms and devices. It has a small memory and DOM footprint in the browser and is fully customizable through CSS. It creates both **horizontal** and **vertical** scrollbars.
2
+
Scrollert is a jQuery plugin that implements good-looking and uniform scrollbars on all browsers, platforms and devices. It has a small memory and DOM footprint in the browser and is fully customizable through CSS. It creates both horizontal and vertical scrollbars.
3
3
4
4
Scrollert.js can be loaded as a [UMD module](https://github.com/umdjs/umd) with your Module loader of choice (SystemJS, RequireJS, Webpack etc) or by loading it globally with a `<script>` tag.
5
5
6
6
Scrollert.js is written in Typescript and LESS.
7
7
8
8
Checkout our [website](https://syslogicnl.github.io/scrollert/) and the [Github repository](https://github.com/SyslogicNL/scrollert)!
9
9
10
+
# Table of contents
11
+
-[Support and compatibility](#support-and-compatibility)
12
+
-[Basic usage](#basic-usage)
13
+
-[Advanced usage](#advanced-usage)
14
+
-[Default styling](#default-styling)
15
+
-[Custom styling](#custom-styling)
16
+
-[Options](#options)
17
+
-[Methods](#methods)
18
+
-[What if my content or container resizes?](#what-if-my-content-or-container-resizes-)
19
+
-[FAQ](#faq)
20
+
10
21
# Support and compatibility
11
22
Scrollert.js is thoroughly field tested and is compatible with:
12
23
-*Chrome* (Windows, OSX, Linux)
@@ -61,7 +72,7 @@ Specify to which axis or axes Scrollert.js must listen. Gives horizontal and/or
61
72
62
73
**Default:**`['x', 'y']`
63
74
64
-
### preventOuterScroll
75
+
### preventOuterScroll (experimental)
65
76
Prevents scrolling of parent elements while hovering a scrollert pane.
66
77
67
78
**Type:** boolean
@@ -79,7 +90,6 @@ The prefix which is prepended to all css-classes.
79
90
### eventNamespace
80
91
The namespace in which all events are added. There is not really a use case to override this, but it is still possible though.
81
92
82
-
83
93
**Type:** string
84
94
85
95
**Default:**`scrollert`
@@ -106,19 +116,29 @@ To destroy a Scrollert.js instance and revert all changes back to how it was bef
106
116
jQuery('.scrollert').scrollert('destroy');
107
117
```
108
118
109
-
## Events
110
-
Not implemented yet.
119
+
## What if my content or container resizes?
120
+
It could be the case that your inner content or outer container resizes, due to things such as new content, a toggled view state or a window resize. Both inner and outer events can affect the size of the scrollbar. To detect changes in the content of a Scrollert-pane, you could use libraries such as:
<sup>frequently asked and less frequently asked, but still answered:</sup>
114
134
## How do I customize Scrollert.js?
115
135
You can customize the looks of Scrollert.js by styling it using CSS.
116
136
117
137
## Why must I specify a tabindex on the content element?
118
-
Good question. I forgot while developing. There really is a reason for that. When it comes to mind, I will update this question
138
+
Specifying a tabindex allows the end-user to use it's keyboard arrow keys to navigate while the pane is focussed.
119
139
120
140
## Why is this plugin created? There are already so many javascript scrollbar plugins
121
-
Syslogic is the maker of Scienta. The majority of our customers uses Windows. There was only one problem. Although we like windows, we are not quite fond of the default Windows scrollbar, especially not when used in an inline panel. To provide our customers with a beautiful and uniform scrolling experience, we searched for a scrollbar solution. We couldn't find one that suited our needs. So we decided to build one ourselfs.
141
+
Syslogic is the maker of Scienta. We want to give our customers the best scrolling experience. The majority of our customers uses Windows. There was only one problem. Although we like windows, we are not quite fond of the default Windows scrollbar, especially not when used in an inline panel. To provide our customers with a beautiful and uniform scrolling experience, we searched for a scrollbar solution. We couldn't find one that suited our needs. So we decided to build one ourselfs.
122
142
123
143
# Build it yourself
124
144
You don't have to stick to the shipped build. Why not build it yourself? You can run `npm install` and `gulp build` to create a customized build.
0 commit comments