Skip to content

Commit

Permalink
3.5.1 - fixes DOM0 onclick event
Browse files Browse the repository at this point in the history
Fixes
- when touchbehavior enabled, intercept DOM0 click event - fixes inuyaksa#162
  • Loading branch information
inuyaksa committed Jun 27, 2013
1 parent a7b5ac1 commit b0a1239
Show file tree
Hide file tree
Showing 7 changed files with 284 additions and 280 deletions.
57 changes: 31 additions & 26 deletions README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jquery.nicescroll
v. 3.5.0 06-24-2013
v. 3.5.1 06-27-2013
copyright 2011-12-13 InuYaksa*2013
licensed under the MIT
http://nicescroll.areaaperta.com
Expand All @@ -11,7 +11,7 @@ Nicescroll as a Greasemonkey plugin: http://userscripts.org/scripts/show/119910

Nicescroll is a jquery plugin, for nice scrollbars with a very similar ios/mobile style.

NOW support HORIZONAL scrollbar too!
NOW supports HORIZONAL scrollbar too!

It supports DIVs, IFrames, textarea, and document page (body) scrollbars.
Compatible with all desktop browser: Firefox 4+, Chrome 5+, Safari 4+ (win/mac), Opera 10+, IE 6+. (all A-grade browsers)
Expand Down Expand Up @@ -73,48 +73,53 @@ Initialize nicescroll ALWAYS in (document) ready statement.

1. Simple mode, it styles document scrollbar:

$(document).ready(
function() {
$("html").niceScroll();
}
);
$(document).ready(
function() {
$("html").niceScroll();
}
);

2. Instance with object returned:

var nice = false;
$(document).ready(
function() {
nice = $("html").niceScroll();
}
);
var nice = false;
$(document).ready(
function() {
nice = $("html").niceScroll();
}
);

3. Style a DIV and chage cursor color:

$(document).ready(
function() {
$("#thisdiv").niceScroll({cursorcolor:"#00F"});
}
);
$(document).ready(
function() {
$("#thisdiv").niceScroll({cursorcolor:"#00F"});
}
);

4. DIV with "wrapper", formed by two divs, the first is the vieport, the latter is the content:

$(document).ready(
function() {
$("#viewportdiv").niceScroll("#wrapperdiv",{cursorcolor:"#00F"});
}
);
$(document).ready(
function() {
$("#viewportdiv").niceScroll("#wrapperdiv",{cursorcolor:"#00F"});
}
);

5. Get nicescroll object:

var nice = $("#mydiv").getNiceScroll();
var nice = $("#mydiv").getNiceScroll();

6. Hide scrollbars:

$("#mydiv").getNiceScroll().hide();
$("#mydiv").getNiceScroll().hide();

7. Check for scrollbars resize (when content or position have changed):

$("#mydiv").getNiceScroll().resize();
$("#mydiv").getNiceScroll().resize();

8. Scrolling to a position:

Scroll X Axis - $("#mydiv").getNiceScroll().doScrollLeft(x, duration);
Scroll Y Axis - $("#mydiv").getNiceScroll().doScrollTop(y, duration);


* CONFIGURATION PARAMETERS
Expand Down
37 changes: 0 additions & 37 deletions changelog_3.5.0.txt

This file was deleted.

20 changes: 20 additions & 0 deletions changelog_3.5.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Changelog nicescroll release 3.5.1
http://nicescroll.areaaperta.com/
https://github.com/inuyaksa/jquery.nicescroll


Fixes
- when touchbehavior enabled, intercept DOM0 click event - fixes #162


TODO
- railpadding
- railpadding top & bottom settings ignored - thanks to simovinci.bellissimo
- honorcssoverflow
- autohidemode:hover
- check 2D scrolling
- check text selection on cursor drag (testing)
- recursive position:fixed check
- check horiz mouse wheel scrolling speed on chrome
- mouse pan scroll

Loading

0 comments on commit b0a1239

Please sign in to comment.