[LON-CAPA-cvs] cvs: loncom /html/adm/nicescroll README changelog_3.5.1.txt
raeburn
raeburn at source.lon-capa.org
Mon Oct 14 13:39:42 EDT 2013
raeburn Mon Oct 14 17:39:42 2013 EDT
Added files:
/loncom/html/adm/nicescroll changelog_3.5.1.txt
Modified files:
/loncom/html/adm/nicescroll README
Log:
- Update nicescroll to 3.5.1
Index: loncom/html/adm/nicescroll/README
diff -u loncom/html/adm/nicescroll/README:1.1 loncom/html/adm/nicescroll/README:1.2
--- loncom/html/adm/nicescroll/README:1.1 Wed Jul 10 14:03:49 2013
+++ loncom/html/adm/nicescroll/README Mon Oct 14 17:39:41 2013
@@ -1,5 +1,5 @@
jquery.nicescroll
-v. 3.4.0 18-04-2013
+v. 3.5.1 06-27-2013
copyright 2011-12-13 InuYaksa*2013
licensed under the MIT
http://nicescroll.areaaperta.com
@@ -11,7 +11,7 @@
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)
@@ -73,48 +73,58 @@
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);
+
+8. Scrolling to a position:
+
+Scroll X Axis - $("#mydiv").getNiceScroll().doScrollLeft(x, duration);
+Scroll Y Axis - $("#mydiv").getNiceScroll().doScrollTop(y, duration);
* CONFIGURATION PARAMETERS
@@ -162,6 +172,7 @@
. enablescrollonselection, enable auto-scrolling of content when selection text (default:true)
. rtlmode, horizontal div scrolling starts at left side (default:false)
. cursordragontouch, drag cursor in touch / touchbehavior mode also (default:false)
+. oneaxismousemode, it permits horizontal scrolling with mousewheel on horizontal only content, if false (vertical-only) mousewheel don't scroll horizontally, if value is auto detects two-axis mouse (default:"auto")
* LICENSE
Index: loncom/html/adm/nicescroll/changelog_3.5.1.txt
+++ loncom/html/adm/nicescroll/changelog_3.5.1.txt
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
More information about the LON-CAPA-cvs
mailing list