Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update demo page #49

Open
wants to merge 52 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
e332dcf
Allow for multiple `.antiscroll` calls on the same elements.
rauchg Nov 23, 2011
8dded15
If scrolled artificially show & hide after 1500ms
rauchg Nov 23, 2011
54bfe57
Added a rebuild method
bpierre Nov 24, 2011
95fbeea
Removed style caching in rebuild()
bpierre Nov 27, 2011
46ec65b
Add initialDisplay option. Fixes #8.
tristandunn Nov 28, 2011
fa1eb21
Merge pull request #9 from tristandunn/initial-display-option
rauchg Nov 28, 2011
a1b1402
- added a refresh method to the api
pgherveou Jan 7, 2012
f2f9785
Merge pull request #14 from pgherveou/master
rauchg Feb 18, 2012
686ce85
Merge pull request #3 from bpierre/master
rauchg Feb 18, 2012
dcdbe9d
improvement in options property
retrofox Feb 20, 2012
3bf6497
explicitly determine the adding of the scrollbars through options par…
retrofox Feb 20, 2012
5fdbc2f
remove for() for options propertes. Add this.x and this.y
retrofox Feb 20, 2012
d5de1a8
Merge pull request #16 from LearnBoost/options
rauchg Feb 20, 2012
87debe6
Add antiscroll wrapper
Mar 6, 2012
969dc85
Use correct jQuery object
Mar 14, 2012
aec5cd7
Optimize scrollbar size computing
pirxpilot Mar 17, 2012
5dc7d59
Merge pull request #17 from pirxpilot/scrollbar-size
rauchg Mar 18, 2012
61d2f9a
add ios native style border to scrollbar
nulltask Mar 21, 2012
60bb4e9
Merge pull request #18 from nulltask/feature/scroll-border
rauchg Mar 21, 2012
afbd33f
update the scrollbar size when refreshing
pgherveou Mar 25, 2012
161d425
fogot var …
pgherveou Mar 26, 2012
7b38c08
I noticed the shade of the scrollbars was a hair off native, so I use…
devinrhode2 Apr 26, 2012
cccebd7
Merge pull request #21 from devinrhode2/patch-1
rauchg Apr 26, 2012
cbeacec
@Guille, I measured the hover color, 0.04 alpha off. LOLZ
devinrhode2 Apr 26, 2012
6e96266
Merge pull request #23 from devinrhode2/patch-2
rauchg Apr 26, 2012
515ac53
fixed some missing ;
pgherveou Apr 29, 2012
fb2d82c
autoHide option to prevent scrollbars from disappearing
logicalparadox May 9, 2012
e745c0a
fixed some performance and cleanup issues
fontaineshu May 30, 2012
30eeadf
enforced a minimum height for the scrollbar
fontaineshu Jul 6, 2012
ecf95e3
Add force options, make antiscroll more robust to work between windows
Sep 5, 2012
2c4789c
Merge pull request #25 from logicalparadox/master
rauchg Sep 5, 2012
ace6299
fix #30 - mousewhell rounding error
Radagaisus Sep 6, 2012
4e8fc3b
Merge pull request #31 from Radagaisus/master
rauchg Sep 6, 2012
e99d75e
Merge remote-tracking branch 'remotes/pgherveou/master' into pgherveou
arlm Oct 29, 2012
6e154bb
Merge remote-tracking branch 'remotes/fonataineshu/master' into fonta…
arlm Oct 29, 2012
8dd1827
Merge remote-tracking branch 'remotes/othree/master' into othree
arlm Oct 29, 2012
9ed4354
Merge branch 'othree' into pull-resquest
arlm Oct 29, 2012
7e1eca4
* Fix on vertical scroll update
arlm Oct 29, 2012
30b7394
* Auto hide fixes
arlm Oct 29, 2012
080bb30
* Performance fixes
arlm Oct 29, 2012
1bf4a37
Merge branch 'pgherveou' into pull-resquest
arlm Oct 29, 2012
5504c58
* recovering issue #30 bugfix
arlm Oct 31, 2012
f7030d0
We don't need to resize the inner div if an axis is turned off.
Nov 4, 2012
684899b
Merge remote-tracking branch 'remotes/tcoulter/master' into pull-resq…
arlm Nov 5, 2012
0140be8
Change scrollbar width calculation
pirxpilot Nov 19, 2012
27b0aaf
Documenting installation and configuration
jumph4x Dec 11, 2012
2273886
Merge pull request #42 from jumph4x/master
rauchg Dec 11, 2012
0c1631d
Merge pull request #34 from arlm/pull-resquest
rauchg Feb 8, 2013
732b763
* Contributors update
arlm Feb 14, 2013
91d12b5
Merge pull request #45 from arlm/pull-resquest
rauchg Feb 14, 2013
5e5639f
Merge pull request #40 from pirxpilot/chrome-25-issues
rauchg Feb 25, 2013
2b0a58b
Give scrollbar pseudo-classes their own blocks
davemckenna01 Feb 26, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Antiscroll: cross-browser native OSX Lion scrollbars

Antiscroll fixes a fundamental problem JavaScript UI developers commonly face:
Expand Down Expand Up @@ -26,6 +25,30 @@ the scrollbars popularized by OS X Lion that retains native properties.
Please click [here](http://learnboost.github.com/antiscroll/) to see it in
action.

## Installation

1. Wrap scrollable content with the class ```antiscroll-inner```
1. Wrap the above with the class ```antiscroll-wrap```
1. Include the following Javascript

```javascript
$(function () {
$('.antiscroll-wrap').antiscroll();
});
```

### Configuration

You may remove automatic scrollbar hiding by passing in a key-value to the ```antiscroll()``` function like so:

```javascript
$(function () {
$('.antiscroll-wrap').antiscroll({
autoHide: false
});
});
```

## What does it look like?

**Firefox 8 `overflow: scroll` and antiscroll on OS X**
Expand Down Expand Up @@ -86,6 +109,13 @@ arbitrarily large width, therefore allowing scrolling of a single axis
Scrollbar size detection based on the work of [Jonathan
Sharp](http://jdsharp.us/jQuery/minute/calculate-scrollbar-width.php).

### Contributors

- Alexandre Rocha Lima e marcondes [@arlm](https://github.com/arlm)
- Othree [@othree](https://github.com/othree)
- PG Herveou [@pgherveou](https://github.com/pgherveou)
- Fontaine Shu [@fontaineshu](https://github.com/fontaineshu)

## Dependencies

- [jQuery](http://github.com/jquery/query)
Expand Down
22 changes: 19 additions & 3 deletions antiscroll.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
}

.antiscroll-scrollbar {
background: #666;
background: rgba(0, 0, 0, .6);
background: gray;
background: rgba(0, 0, 0, 0.5);
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
border-radius: 7px;
-webkit-box-shadow: 0 0 1px #fff;
-moz-box-shadow: 0 0 1px #fff;
box-shadow: 0 0 1px #fff;
position: absolute;
opacity: 0;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
Expand Down Expand Up @@ -41,7 +44,20 @@
overflow: scroll;
}

.antiscroll-inner::-webkit-scrollbar, .antiscroll-inner::scrollbar {
/** A bug in Chrome 25 on Lion requires each selector to have their own
blocks. E.g. the following:

.antiscroll-inner::-webkit-scrollbar, .antiscroll-inner::scrollbar {...}

causes the width and height rules to be ignored by the browser resulting
in both native and antiscroll scrollbars appearing at the same time.
*/
.antiscroll-inner::-webkit-scrollbar {
width: 0;
height: 0;
}

.antiscroll-inner::scrollbar {
width: 0;
height: 0;
}
Loading