Skip to content

Commit

Permalink
2.3.0
Browse files Browse the repository at this point in the history
scrollbar will hide when div has hidden
requestAnimationFrame
event fix for IE
  • Loading branch information
inuyaksa committed Nov 23, 2011
1 parent 7f2b712 commit f10ab17
Show file tree
Hide file tree
Showing 7 changed files with 371 additions and 268 deletions.
4 changes: 3 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jquery.nicescroll
v. 2.2.0 11-13-2011
v. 2.3.0 11-23-2011
copyright 2011 InuYaksa*2011
licensed under the MIT
http://areaaperta.com/nicescroll
Expand Down Expand Up @@ -107,6 +107,8 @@ When you call "niceScroll" you can pass some parameters to custom visual aspects
. grabcursorenabled, display "grab" icon for div with touchbehavior = true, default is true
. autohidemode, how hide the scrollbar works, true=default / "cursor" = only cursor hidden / false = do not hide
. background, change css for rail background, default is ""
. iframeautoresize, autoresize iframe on load event (default:true)
. autohidemode, when true the scrollbars has hidden if there is no scroll on page/div (default:true)

* LICENSE

Expand Down
41 changes: 0 additions & 41 deletions changelog_2.2.0.txt

This file was deleted.

35 changes: 35 additions & 0 deletions changelog_2.3.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Changelog nicescroll release 2.3.0
http://areaaperta.com/nicescroll
https://github.com/inuyaksa/jquery.nicescroll


New features
- show/hide scrollbar functions
- scrollbar will hide when div has hidden
- show scrollbar only when it needs (page/div with scroll)
- detect orientationchange event (when available)
- requestAnimationFrame (most of modern browsers) implementation for a smoother scrolling and CPU power saving (only native scrolling)
- added variable with version of library

New options
- iframeautoresize, autoresize iframe on load event (default:true)
- autohidemode, when true the scrollbars has hidden if there is no scroll on page/div (default:true)

Changed features
- more precise scrolling when key has pressed
- more consistent iframe support
- internal reorganization of event functions
- added touchcancel event

Fixes
- x-position of cursor and rail width on simple div
- prevent default for gesture event
- Opera, keypress on iframe
- IE7 detection routine
- IE8 IE7, keypress on form fields
- better event manager for IE8-
- IE8 & older, fix iframe scrolling detection

Known issues
- chrome/safari can't detect dom attribute change, on div attr change you need to recall onResize() function

2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery NiceScroll Test 2.2.0</title>
<title>jQuery NiceScroll Test 2.3.0</title>
<style type="text/css">
#boxscroll {
padding: 40px;
Expand Down
Loading

0 comments on commit f10ab17

Please sign in to comment.