Skip to content

Commit

Permalink
3.6.0
Browse files Browse the repository at this point in the history
New options
- scriptpath, Allows users to define their own "scriptpath" #309

Changed features
- Primitive bootstrap support - modal windows #449
- removed delayed method

Fixes
- Rail positioning bug when hwacceleration is off in Chrome browser #447
- Scroll is Positioned at Page Bottom in Chrome. Nicescroll v 3.5.6 #443
- Uncaught TypeError: Cannot read property 'win' of null #439
- Multi-Touch gestures - OS X #431
- Nicescroll bar rail jumps after resize #425
- nicescroll rail positioned at the bottom in chrome when refreshing
page that has scroll #424
- CTRL-F not working do nicescroll #419
- IE 11 - touch support #418
- Multiple nicescroll containers can't use same config car? #409
- "*niceBar.locked = true" --- Unlocked by browser window resizing #408
- Scrollbar displayed but not scrollable on IE11 with Windows 8 touch
device #407
- this.getViewport doesn't check for relative #403
- Chrome Search on Windows breaks NiceScroll #400
- Vertical scrollbar problem in Chrome 35 when the scroll of the body is
greater than 0 #394
- Scroll position on page reload - Latest version (3.5.4) #387
- Incorrect scrollbar position after reload in Chrome #372
- Problem on expresion: /BODY|HTML/.test(dom.nodeName) #292
- Ctrl + mouse wheel - scrolling instead zooming in Firefox and IE #275
- Remove - Uncaught TypeError: Cannot set property 'onsync' of null #247
- JS Error in console: Uncaught TypeError: Cannot read property
'defaultView' of null  #245
- railposition outside a fixed div in Chrome 38 and IE not correct #450
- Preserve Vertical scroll behavior after horizontal scrolling ends #451
- Wrapped divs, fix rail position for content already scrolled
- Detect content appends to page, refresh rail positions
- Nicescrolls are not located in the new positions #446
- Chrome, dragging cursor on touchbehavior losts mouse move
- cantouch capability is detected as a false positive in WebKitGTK+ #367
- Scrolling via touch not working on certain non-IOS webkit browsers
(namely Cisco's IEC 4600 series) #389
- Chrome, cursor drag on "touchbehavior"=TRUE
- IE10+ drag lock issue

Coding notes
- Initial code rewriting to detach legacy browser support for current
code

Thanks to contributors!!
- Touch support for W3C Pointer Events #420
- railpadding/railoffset fixed #413
- Fix for neverending drag mode on horizontal scrollbar disappear #371
- fixed 'use strict' errors #355
- Readability and maintainability improvement #336
- Update jquery.nicescroll.js #325
- cantouch capability is detected as a false positive in WebKitGTK+ #368
  • Loading branch information
inuyaksa committed Nov 21, 2014
1 parent c58d092 commit af737e0
Show file tree
Hide file tree
Showing 12 changed files with 2,643 additions and 2,597 deletions.
2 changes: 1 addition & 1 deletion MIT.LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Open Source Initiative OSI - The MIT License (MIT):Licensing
[OSI Approved License]
The MIT License (MIT)

Copyright (c) 2011 InuYaksa
Copyright (c) 2011-14 InuYaksa

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#jQuery.NiceScroll
v. 3.5.6 10-09-2014

If you are a developer you can try bleeding-edge version:
https://github.com/inuyaksa/jquery.nicescroll/tree/Bleeding-edge
v. 3.6.0 11-21-2014

- [Web Site: nicescroll.areaaperta.com](http://nicescroll.areaaperta.com)
- [Repo: github.com/inuyaksa/jquery.nicescroll](https://github.com/inuyaksa/jquery.nicescroll)
Expand All @@ -13,11 +10,11 @@ https://github.com/inuyaksa/jquery.nicescroll/tree/Bleeding-edge

> Nicescroll is a jquery plugin, for nice scrollbars with a very similar ios/mobile style.
- NOW supports HORIZONAL scrollbar too!
- HORIZONAL scrollbar support!
- 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)
- Compatible with mobile device: iPad/iPhone/iPod, Android 2.2+, Blackberry phones and Playbook (WebWorks/Table OS), Windows Phone 7.5 Mango.
- Compatible with all touch devices: iPad, Window Surface.
- Compatible with all touch devices: iPad, Android tablets, Window Surface.
- Compabible with multi-input device (mouse with touch or pen): Window Surface, Chrome Desktop on touch notebook.
- Compatible with 2 directions mice: Apple Magic Mouse, Apple Mouser with 2-dir wheel, PC mouse with 2-dir wheel (if browser support it).

Expand All @@ -30,6 +27,9 @@ It works on desktop (double click on div) either in mobile/touch devices using p
On modern browsers hardware accelerated scrolling has implemented.
Using animationFrame for a smoothest and cpu-saving scrolling. (when browser supports)

"Use strict" tested script for maximum code quality.
Bower and AMD ready.

Warning for IE6 users (why do you uses IE6 yet? Please updgrade to a more stable and modern browser), some feature can't work for limitation of the browser.
Document (body) scrollbars can't appears, old (native browser) one is used. Some issues with IFrame scrolling.

Expand Down Expand Up @@ -57,7 +57,7 @@ Document (body) scrollbars can't appears, old (native browser) one is used. Some

## DEPENDENCIES
>> It's a plugin for the jquery framework, you need to include jquery in your scripts.
>> From 1.5.x version and on. (you can try with 1.4.2+ also)
>> From 1.5.x version and on. (I'd better to use 1.8.3+ minimum)

* INSTALLATION
Expand Down Expand Up @@ -126,7 +126,7 @@ When you call "niceScroll" you can pass some parameters to custom visual aspects
boxzoom: false, // enable zoom for box content
dblclickzoom: true, // (only when boxzoom=true) zoom activated when double click on box
gesturezoom: true, // (only when boxzoom=true and with touch devices) zoom activated when pinch out/in on box
grabcursorenabled: true, // (only when touchbehavior=true) display "grab" icon
grabcursorenabled: true // (only when touchbehavior=true) display "grab" icon
autohidemode: true, // how hide the scrollbar works, possible values: true, "cursor" (only cursor hidden), false (do not hide),
background: "", // change css for rail background
iframeautoresize: true, // autoresize iframe on load event
Expand Down Expand Up @@ -155,6 +155,7 @@ When you call "niceScroll" you can pass some parameters to custom visual aspects
cursordragontouch: false, // drag cursor in touch / touchbehavior mode also
oneaxismousemode: "auto", // 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
scriptpath: "" // define custom path for boxmode icons ("" => same script path)
preventmultitouchscrolling: true // prevent scrolling on multitouch events
});
```

Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.nicescroll",
"version": "3.5.6",
"version": "3.6.0",
"main": [
"./jquery.nicescroll.js",
"./zoomico.png"
Expand All @@ -11,6 +11,6 @@
"package.json"
],
"dependencies": {
"jquery": ">=1.4.3"
"jquery": ">=1.8.3"
}
}
43 changes: 0 additions & 43 deletions changelog_3.5.6.txt

This file was deleted.

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


New options
- scriptpath, Allows users to define their own "scriptpath" #309


Changed features
- Primitive bootstrap support - modal windows #449
- removed delayed method


Fixes
- Rail positioning bug when hwacceleration is off in Chrome browser #447
- Scroll is Positioned at Page Bottom in Chrome. Nicescroll v 3.5.6 #443
- Uncaught TypeError: Cannot read property 'win' of null #439
- Multi-Touch gestures - OS X #431
- Nicescroll bar rail jumps after resize #425
- nicescroll rail positioned at the bottom in chrome when refreshing page that has scroll #424
- CTRL-F not working do nicescroll #419
- IE 11 - touch support #418
- Multiple nicescroll containers can't use same config car? #409
- "*niceBar.locked = true" --- Unlocked by browser window resizing #408
- Scrollbar displayed but not scrollable on IE11 with Windows 8 touch device #407
- this.getViewport doesn't check for relative #403
- Chrome Search on Windows breaks NiceScroll #400
- Vertical scrollbar problem in Chrome 35 when the scroll of the body is greater than 0 #394
- Scroll position on page reload - Latest version (3.5.4) #387
- Incorrect scrollbar position after reload in Chrome #372
- Problem on expresion: /BODY|HTML/.test(dom.nodeName) #292
- Ctrl + mouse wheel - scrolling instead zooming in Firefox and IE #275
- Remove - Uncaught TypeError: Cannot set property 'onsync' of null #247
- JS Error in console: Uncaught TypeError: Cannot read property 'defaultView' of null #245
- railposition outside a fixed div in Chrome 38 and IE not correct #450
- Preserve Vertical scroll behavior after horizontal scrolling ends #451
- Wrapped divs, fix rail position for content already scrolled
- Detect content appends to page, refresh rail positions
- Nicescrolls are not located in the new positions #446
- Chrome, dragging cursor on touchbehavior losts mouse move
- cantouch capability is detected as a false positive in WebKitGTK+ #367
- Scrolling via touch not working on certain non-IOS webkit browsers (namely Cisco's IEC 4600 series) #389
- Chrome, cursor drag on "touchbehavior"=TRUE
- IE10+ drag lock issue

Coding notes
- Initial code rewriting to detach legacy browser support for current code


Thanks to contributors!!
- Touch support for W3C Pointer Events #420
- railpadding/railoffset fixed #413
- Fix for neverending drag mode on horizontal scrollbar disappear #371
- fixed 'use strict' errors #355
- Readability and maintainability improvement #336
- Update jquery.nicescroll.js #325
- cantouch capability is detected as a false positive in WebKitGTK+ #368


TODO
- Mousewheel button "click scroll" not working #377
- Not scrolling on lastest Firefox with HTML5 inside iframe #322
- 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
- check snappy

24 changes: 21 additions & 3 deletions demo/browser.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Expand Down Expand Up @@ -34,7 +34,7 @@
nice = $("html").niceScroll();
});

var obj = window;//$(window);
var obj = window;

console.log(obj.length);
console.log("selector" in obj);
Expand Down Expand Up @@ -62,6 +62,8 @@
toCell(3,5,nice.detected.isie7);
toCell(3,6,nice.detected.isieold);

toCell(7,1,nice.detected.isie11);

toCell(4,1,nice.detected.isopera);
toCell(4,2,nice.detected.isopera12);
toCell(4,3,nice.detected.isoperamini);
Expand All @@ -76,6 +78,7 @@

toCell(0,8,nice.detected.cantouch);
toCell(3,8,nice.detected.hasmstouch);
toCell(7,8,nice.detected.hasw3ctouch);

toCell(1,10,nice.detected.hastransform);
toCell(1,11,nice.detected.hastranslate3d);
Expand All @@ -91,7 +94,7 @@

toCell(1,14,!nice.detected.cantouch);
toCell(2,14,!nice.detected.cantouch);
toCell(3,14,nice.detected.cantouch||nice.istouchcapable||nice.hasmstouch);
toCell(3,14,nice.detected.cantouch||nice.istouchcapable||nice.hasmstouch||nice.detected.hasw3ctouch);
toCell(4,14,nice.detected.isie9mobile);

});
Expand All @@ -112,6 +115,7 @@
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor="#E0E0E9">Browser class</td>
Expand All @@ -121,6 +125,7 @@
<td bgcolor="#E0E0E9">Opera</td>
<td bgcolor="#E0E0E9">iOS <span class="num">(7)</span></td>
<td bgcolor="#E0E0E9">Chrome</td>
<td bgcolor="#E0E0E9">IE11+</td>
</tr>
<tr>
<td bgcolor="#E0E0E9">Families</td>
Expand All @@ -130,6 +135,7 @@
<td bgcolor="#E0E0E9">Opera&nbsp;12</td>
<td bgcolor="#E0E0E9">iOS4- <span class="num">(6)</span></td>
<td bgcolor="#E0E0E9">Chrome 22+</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#E0E0E9">&nbsp;</td>
Expand All @@ -139,6 +145,7 @@
<td bgcolor="#E0E0E9">Opera&nbsp;Mini</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">Chrome 26+</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#E0E0E9">&nbsp;</td>
Expand All @@ -148,6 +155,7 @@
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#E0E0E9">&nbsp;</td>
Expand All @@ -157,6 +165,7 @@
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#E0E0E9">&nbsp;</td>
Expand All @@ -166,6 +175,7 @@
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
Expand All @@ -175,6 +185,7 @@
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr bgcolor="#E0E0E9">
<td>Touch</td>
Expand All @@ -184,6 +195,7 @@
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>Pointer (W3C)</td>
</tr>
<tr>
<td>&nbsp;</td>
Expand All @@ -193,6 +205,7 @@
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor="#E0E0E9">Browser capabilities</td>
Expand All @@ -202,6 +215,7 @@
<td bgcolor="#E0E0E9">MutationObserver</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#E0E0E9">&nbsp;</td>
Expand All @@ -211,6 +225,7 @@
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#E0E0E9">&nbsp;</td>
Expand All @@ -220,6 +235,7 @@
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
Expand All @@ -229,6 +245,7 @@
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr bgcolor="#E0E0E9">
<td>Input</td>
Expand All @@ -238,6 +255,7 @@
<td>WP7.1(8)</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p>&nbsp; </p>
Expand Down
Loading

0 comments on commit af737e0

Please sign in to comment.