提交 d4bb7f78 编写于 作者: I InuYaksa

mobile android/ios fixes and other important fixes

- typos on touchaction for IE10+ #658
- MS Edge (14+) detection fixed
#655
- webkitCancelRequestAnimationFrame deprecated #650
-
enableobserver option added #643
- Bug in bower.json #617
- Versions
from "3.6.7" to "latest" brokes scroll on touch devices #634
-
Horizontal scroll doesn't work on mobile devices tested with chrome &
firefox on Android #646
- How to Scroll in Mobile Device #626
- 3.6.7
not working on ios or android #574
- On iPhone safari does not work
#649
- Touch scrolling leads to a click event on Windows touch (Edge and
Firefox browser) #614
- Nicescroll not working in IOS 9+ #611
- fixed
ghost horizontal scrollbar
- enableobserver (default:true), attach Mutation Observers (or
alternative observers) to monitoring any attribute change at nicescroll
DOM, on performance issue you can disable
- deprecated touchbehavior, new touchemulate option, name changing I
hope solve many misunderstanding about this option meaning
- a little
more saving on zoomico.png (from 393b to 254b)
上级 c42fd04f
......@@ -2,7 +2,7 @@ Open Source Initiative OSI - The MIT License (MIT):Licensing
[OSI Approved License]
The MIT License (MIT)
Copyright (c) 2011-14 InuYaksa
Copyright (c) 2011-17 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
......
#jQuery.NiceScroll
v. 3.6.8 02-29-2016
v. 3.7.0 2017-05-21
- [Web Site: nicescroll.areaaperta.com](http://nicescroll.areaaperta.com)
- [Repo: github.com/inuyaksa/jquery.nicescroll](https://github.com/inuyaksa/jquery.nicescroll)
......@@ -14,13 +14,13 @@ v. 3.6.8 02-29-2016
- 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 recent desktop browser and older: 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 10 and older.
- 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).
So you have scrollable divs with momentum for iPad 4+ and you have consistent scrollable areas for all desktop and mobile platforms.
So you have customizable and scrollable divs with momentum for iPad and you have consistent scrollable areas for all desktop and mobile platforms.
Sexy zoom feature, you can "zoom-in" the content of any nicescroll'ed div.
Nice to use and nice to see, all the content of the div in fullscreen mode.
......@@ -123,7 +123,8 @@ $("#thisdiv").niceScroll({
zindex: "auto" | <number>, // change z-index for scrollbar div
scrollspeed: 60, // scrolling speed
mousescrollstep: 40, // scrolling speed with mouse wheel (pixel)
touchbehavior: false, // enable cursor-drag scrolling like touch devices in desktop computer
touchbehavior: false, // DEPRECATED!! use "touchemulate"
touchemulate: false, // enable cursor-drag scrolling like touch devices in desktop computer
hwacceleration: true, // use hardware accelerated scroll when supported
boxzoom: false, // enable zoom for box content
dblclickzoom: true, // (only when boxzoom=true) zoom activated when double click on box
......@@ -176,7 +177,7 @@ Related projects
* LICENSE
## Copyright 2011-16 InuYaksa
## Copyright 2011-17 InuYaksa
######Licensed under the MIT License, http://www.opensource.org/licenses/mit-license.php
######Images used for zoom icons have derived from OLPC interface, http://laptop.org/8.2.0/manual/Browse_ChangingView.html
{
"name": "jquery.nicescroll",
"main": [
"./jquery.nicescroll.js"
"./jquery.nicescroll.min.js"
],
"ignore": [
"**/.*",
......
Changelog nicescroll release 3.6.8
http://nicescroll.areaaperta.com/
https://github.com/inuyaksa/jquery.nicescroll
Changed features
New options
- disablemutationobserver, = TRUE when you want that MutationObserver disabled #580
Fixes
- Fix show of null #583
- Refactoring js #582
- Removed comments #577
- Timeouts & using on dynamic DOM Elements: "Uncaught TypeError" #579
- version 3.6.6 stack overflow #578
- MutationObserver. IE11 crashes #568
- Xbox One IE Edge browser can't scroll anywhere #581 (to test on real hw!)
- NIce Scroll doesnt work on Window Surface IE Edge #555
Thanks to great contributors!!
@silversonicaxel
@vsn4ik
@ronar
@StephanBijzitter
TODO
- deprecate legacy browsers
\ No newline at end of file
Changelog nicescroll release 3.7.0
http://nicescroll.areaaperta.com/
https://github.com/inuyaksa/jquery.nicescroll
Fixes
- typos on touchaction for IE10+ #658
- MS Edge (14+) detection fixed #655
- webkitCancelRequestAnimationFrame deprecated #650
- enableobserver option added #643
- Bug in bower.json #617
- Versions from "3.6.7" to "latest" brokes scroll on touch devices #634
- Horizontal scroll doesn't work on mobile devices tested with chrome & firefox on Android #646
- How to Scroll in Mobile Device #626
- 3.6.7 not working on ios or android #574
- On iPhone safari does not work #649
- Touch scrolling leads to a click event on Windows touch (Edge and Firefox browser) #614
- Nicescroll not working in IOS 9+ #611
- fixed ghost horizontal scrollbar
New options
- enableobserver (default:true), attach Mutation Observers (or alternative observers) to monitoring any attribute change at nicescroll DOM, on performance issue you can disable
Changes
- deprecated touchbehavior, new touchemulate option, name changing I hope solve many misunderstanding about this option meaning
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
<!DOCTYPE html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
......@@ -24,7 +24,7 @@ body {
}
</style>
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="js/jquery.nicescroll.min.js"></script>
<script>
......@@ -34,7 +34,7 @@ body {
nice = $("html").niceScroll();
});
var obj = window;
var obj = window;//$(window);
console.log(obj.length);
console.log("selector" in obj);
......@@ -63,6 +63,7 @@ body {
toCell(3,6,nice.detected.isieold);
toCell(7,1,nice.detected.isie11);
toCell(7,2,nice.detected.ismsedge);
toCell(4,1,nice.detected.isopera);
toCell(4,2,nice.detected.isopera12);
......@@ -70,6 +71,8 @@ body {
toCell(5,1,nice.detected.isios);
toCell(5,2,nice.detected.isios4);
toCell(5,3,nice.detected.isios8);
toCell(5,4,nice.detected.isios10);
toCell(6,1,nice.detected.ischrome);
toCell(6,2,nice.detected.ischrome22);
......@@ -135,7 +138,7 @@ body {
<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>
<td bgcolor="#E0E0E9">MSEdge</td>
</tr>
<tr>
<td bgcolor="#E0E0E9">&nbsp;</td>
......@@ -143,7 +146,7 @@ body {
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">IE9+</td>
<td bgcolor="#E0E0E9">Opera&nbsp;Mini</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">iOS8</td>
<td bgcolor="#E0E0E9">Chrome 26+</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
</tr>
......@@ -153,7 +156,7 @@ body {
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">IE8</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">iOS10</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
<td bgcolor="#E0E0E9">&nbsp;</td>
</tr>
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
dist/zoomico.png

393 字节 | W: | H:

dist/zoomico.png

254 字节 | W: | H:

dist/zoomico.png
dist/zoomico.png
dist/zoomico.png
dist/zoomico.png
  • 2-up
  • Swipe
  • Onion skin
此差异已折叠。
此差异已折叠。
{
"name": "nicescroll",
"version": "3.6.8",
"version": "3.7.0",
"bugs": "http://github.com/inuyaksa/jquery.nicescroll/issues",
"repository": {
"type": "git",
......@@ -12,15 +12,15 @@
"url": "https://github.com/inuyaksa"
},
"licenses": "MIT",
"autoupdate": {
"autoupdate": {
"source": "git",
"target": "git://github.com/inuyaksa/jquery.nicescroll.git",
"basePath": "dist",
"files": [
"**/*"
]
},
"description": "Nicescroll is a jquery plugin, for nice customizabled scrollbars with a very similar ios/mobile style. It supports DIVs, IFrames and document page (body) scrollbars. Compatible with Firefox 4+, Chrome 5+, Safari 4+ (win/mac), Opera 10+, IE 6+ (all A-grade browsers). Compatible with iOS devices as iPad, Android, Blackberry, Windows Phone, and many many mobile and touch devices.",
},
"description": "Nicescroll is a jquery plugin, for nice customizabled scrollbars with a very similar ios/mobile style. It supports DIVs, IFrames and document page (body) scrollbars. Compatible with modern browsers Chrome/Firefox/Edge/Safari/Opera for smartphone ios/android and desktop pc/mac: iphone/ipad/ipod, android, surface, pc (chrome/firefox) mac (safari/chrome). Compatibile with older browers too, such as IE11/10/9, some limitations could exists.",
"keywords": [
"nicescroll",
"jquery",
......@@ -36,7 +36,12 @@
"desktop",
"scrollbar",
"touch",
"android"
"android",
"chrome",
"firefox",
"safari",
"surface",
"edge"
],
"homepage": "https://github.com/inuyaksa/jquery.nicescroll",
"contributors": [
......@@ -56,21 +61,26 @@
"TNKSoftware"
],
"files": [
"jquery.nicescroll.js",
"jquery.nicescroll.min.js",
"zoomico.png"
"dist/jquery.nicescroll.js",
"dist/jquery.nicescroll.min.js",
"dist/zoomico.png"
],
"main": "jquery.nicescroll.js",
"dependencies": {
"jquery": ">=1.8.3"
},
"devDependencies": {},
"devDependencies": {
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-jshint": "^1.1.0"
},
"npmName": "nicescroll",
"npmFileMap": [{
"basePath": "/dist/",
"files": [
"*.js",
"zoomico.png"
]
}]
"npmFileMap": [
{
"basePath": "/dist/",
"files": [
"*.js",
"zoomico.png"
]
}
]
}
zoomico.png

393 字节 | W: | H:

zoomico.png

254 字节 | W: | H:

zoomico.png
zoomico.png
zoomico.png
zoomico.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册