Skip to content

Commit

Permalink
3.7.4
Browse files Browse the repository at this point in the history
Fixes
- touchpad scrolling support for MS Surface aka FYI - Browser test
results on Surface Pro touchscreen and touchpad #668
- changed scrollbarid setting procedure because uglify mades
uncompatible code for IE8 aka use nicescroll in IE8 #672
- preserve scrol chain
- page scrollbar not customized on android
- prevent bar flickering when window not changed aka Using this plugin I
got a flickering scroll bar #674

Changes
- more responsive direct scrolling from bars
- more consistence scrolling speed on many browsers (Chrome, Firefox,
Edge)
- minor code optimizations and jshint check
- jQuery "bind" event function changed to "on", migration to jQuery 3
(still jQuery 1 compatible) #361
- Using jQuery.expr.pseudos, migration to jQuery 3 (still jQuery 1
compatible) #361
- changed arguments for doScrollBy and doScrollLeftBy
  • Loading branch information
inuyaksa committed Jul 2, 2017
1 parent 166b900 commit ce34b1f
Show file tree
Hide file tree
Showing 14 changed files with 1,538 additions and 1,544 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jQuery.NiceScroll
v. 3.7.3 2017-06-18
v. 3.7.4

## The best nicescroll release ever - extremely smooth and consistent in modern browsers and mobile devices, with low resource usage

- [Web Site: nicescroll.areaaperta.com](https://nicescroll.areaaperta.com)
- [Repo: github.com/inuyaksa/jquery.nicescroll](https://github.com/inuyaksa/jquery.nicescroll)
Expand Down Expand Up @@ -74,23 +76,23 @@ When you use zoom feature, copy image "zoomico.png" in the same folder of jquery
Initialize nicescroll ALWAYS in (document) ready statement.
```javascript
// 1. Simple mode, it styles document scrollbar:
$(document).ready(function() {
$(function() {
$("html").niceScroll();
});

// 2. Instance with object returned:
var nice = false;
$(document).ready(function() {
$(function() {
nice = $("html").niceScroll();
});

// 3. Style a DIV and chage cursor color:
$(document).ready(function() {
$(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() {
$(function() {
$("#viewportdiv").niceScroll("#wrapperdiv",{cursorcolor:"#00F"});
});

Expand Down
12 changes: 0 additions & 12 deletions changelog_3.7.3.txt

This file was deleted.

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



Fixes
- touchpad scrolling support for MS Surface aka FYI - Browser test results on Surface Pro touchscreen and touchpad #668
- changed scrollbarid setting procedure because uglify mades uncompatible code for IE8 aka use nicescroll in IE8 #672
- preserve scrol chain
- page scrollbar not customized on android
- prevent bar flickering when window not changed aka Using this plugin I got a flickering scroll bar #674

Changes
- more responsive direct scrolling from bars
- more consistence scrolling speed on many browsers (Chrome, Firefox, Edge)
- minor code optimizations and jshint check
- jQuery "bind" event function changed to "on", migration to jQuery 3 (still jQuery 1 compatible) #361
- Using jQuery.expr.pseudos, migration to jQuery 3 (still jQuery 1 compatible) #361
- changed arguments for doScrollBy and doScrollLeftBy
8 changes: 4 additions & 4 deletions demo/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
}
</style>

<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="js/jquery.nicescroll.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="js/jquery.nicescroll.min.js"></script>

<script>
var nice = false;

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

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

console.log(obj.length);
console.log("selector" in obj);
Expand Down
4 changes: 2 additions & 2 deletions demo/js/jquery.nicescroll.min.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/jquery.nicescroll.iframehelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,10 @@
$.nicescroll.each(function () {
var nice = this;
nice.scrollstart(function () {
console.log("start");
if (!hasstyle) sheet.insertRule("iframe { pointer-events: none !important; }", 0);
hasstyle = true;
});
nice.scrollend(function () {
console.log("end");
if (hasstyle) sheet.deleteRule(0);
hasstyle = false;
});
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.nicescroll.iframehelper.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ce34b1f

Please sign in to comment.