소스 검색

3.6.0

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
InuYaksa 10 년 전
부모
커밋
af737e0f2f
12개의 변경된 파일876개의 추가작업 그리고 981개의 파일을 삭제
  1. 1 1
      MIT.LICENSE
  2. 9 8
      README.md
  3. 2 2
      bower.json
  4. 0 43
      changelog_3.5.6.txt
  5. 74 0
      changelog_3.6.0.txt
  6. 21 3
      demo/browser.html
  7. 0 141
      demo/js/jquery.nicescroll.min.js
  8. BIN
      demo/js/zoomico.png
  9. 710 596
      jquery.nicescroll.js
  10. 0 141
      jquery.nicescroll.min.js
  11. 59 46
      package.json
  12. BIN
      zoomico.png

+ 1 - 1
MIT.LICENSE

@@ -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

+ 9 - 8
README.md

@@ -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)
@@ -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).
 
@@ -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.
 
@@ -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
@@ -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
@@ -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
     });
 ```
 

+ 2 - 2
bower.json

@@ -1,6 +1,6 @@
 {
     "name": "jquery.nicescroll",
-    "version": "3.5.6",
+    "version": "3.6.0",
     "main": [
         "./jquery.nicescroll.js",
         "./zoomico.png"
@@ -11,6 +11,6 @@
         "package.json"
     ],
     "dependencies": {
-        "jquery": ">=1.4.3"
+        "jquery": ">=1.8.3"
     }
 }

+ 0 - 43
changelog_3.5.6.txt

@@ -1,43 +0,0 @@
-Changelog nicescroll release 3.5.6
-http://nicescroll.areaaperta.com/
-https://github.com/inuyaksa/jquery.nicescroll
-
-Notes
-Many thanks to contributors for a lot of fixes.
-
-
-New options
-
-
-Changed features
-
-
-Fixes
-- Missing comma after grabcursorenabled: true #438 - thanks to @rafasashi
-- fix syntax error #433 - thanks to @levinalex
-- updating package.json/bower.json to better fit bower recommandation #341 - thanks to @barraq
-- Added horizontal rail offset option. Functions idential to railoffset. #363 - thanks to @krusematt
-- Update onwheel detection #320 - thanks to @brandonaaron
-- Update tabindex setting to native behavior #328 - thanks to @yukulele
-- Fix rtl mode #233 #399 - thanks to @smbeiragh
-- Allow http / https connection (cursor loading from google site) #410 - thanks to @nasaorc
-- Windows 8.1 IE11 pointerType change #421 - thanks to @meszabalu
-
-
-Doc
-- Improved documentation / README #369 - thanks to @Zauberfisch
-
-
-TODO
-- checking on IE10 & IE11 (need more tests)
-- 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
-- drop legacy support for shrink file size

+ 74 - 0
changelog_3.6.0.txt

@@ -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
+

+ 21 - 3
demo/browser.html

@@ -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" />
@@ -34,7 +34,7 @@ body {
     nice = $("html").niceScroll();
   });
   
-  var obj = window;//$(window);
+  var obj = window;
   
   console.log(obj.length);
   console.log("selector" in obj);
@@ -62,6 +62,8 @@ body {
 	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);
@@ -76,6 +78,7 @@ body {
 	
 	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);
@@ -91,7 +94,7 @@ body {
 
 	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);  
 	
   });
@@ -112,6 +115,7 @@ body {
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
+    <td>&nbsp;</td>
   </tr>
   <tr>
     <td bgcolor="#E0E0E9">Browser class</td>
@@ -121,6 +125,7 @@ body {
     <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>
@@ -130,6 +135,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>
   </tr>
   <tr>
     <td bgcolor="#E0E0E9">&nbsp;</td>
@@ -139,6 +145,7 @@ body {
     <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>
@@ -148,6 +155,7 @@ body {
     <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>
@@ -157,6 +165,7 @@ body {
     <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>
@@ -166,6 +175,7 @@ body {
     <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>
@@ -175,6 +185,7 @@ body {
     <td>&nbsp;</td>
     <td>&nbsp;</td>
 		<td>&nbsp;</td>
+    <td>&nbsp;</td>
   </tr>
   <tr bgcolor="#E0E0E9">
     <td>Touch</td>
@@ -184,6 +195,7 @@ body {
     <td>&nbsp;</td>
     <td>&nbsp;</td>
 		<td>&nbsp;</td>
+    <td>Pointer (W3C)</td>
   </tr>
   <tr>
     <td>&nbsp;</td>
@@ -193,6 +205,7 @@ body {
     <td>&nbsp;</td>
     <td>&nbsp;</td>
 		<td>&nbsp;</td>
+    <td>&nbsp;</td>
   </tr>
   <tr>
     <td bgcolor="#E0E0E9">Browser capabilities</td>
@@ -202,6 +215,7 @@ body {
     <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>
@@ -211,6 +225,7 @@ body {
     <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>
@@ -220,6 +235,7 @@ body {
     <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>
@@ -229,6 +245,7 @@ body {
     <td>&nbsp;</td>
     <td>&nbsp;</td>
 		<td>&nbsp;</td>
+    <td>&nbsp;</td>
   </tr>
   <tr bgcolor="#E0E0E9">
     <td>Input</td>
@@ -238,6 +255,7 @@ body {
     <td>WP7.1(8)</td>
     <td>&nbsp;</td>
 		<td>&nbsp;</td>
+    <td>&nbsp;</td>
   </tr>  
 </table>
 <p>&nbsp; </p>

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 141
demo/js/jquery.nicescroll.min.js


BIN
demo/js/zoomico.png


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 710 - 596
jquery.nicescroll.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 141
jquery.nicescroll.min.js


+ 59 - 46
package.json

@@ -1,48 +1,61 @@
 {
-    "name": "jquery.nicescroll",
-    "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.",
-    "version": "3.5.6",
-    "keywords": [
-        "nicescroll",
-        "jquery",
-        "interface",
-        "window",
-        "dom",
-        "div",
-        "scroll",
-        "ios",
-        "mobile",
-        "desktop",
-        "scrollbar",
-        "touch",
-        "android"
-    ],
-    "homepage": "https://github.com/inuyaksa/jquery.nicescroll",
-    "author": {
-        "name": "InuYaksa",
-        "url": "https://github.com/inuyaksa"
-    },
-    "contributors": [
-        "inuyaksa",
-        "GianlucaGuarini",
-        "nkovacs",
-        "zcourts",
-        "philleepflorence",
-        "gustavnikolaj",
-        "laychopy",
-        "barraq"
-    ],
-    "repository": {
-        "type": "git",
-        "url": "https://github.com/inuyaksa/jquery.nicescroll.git"
-    },
-    "bugs": {
-        "url": "https://github.com/inuyaksa/jquery.nicescroll/issues"
-    },
-    "licenses": [
-        {
-            "type": "MIT",
-            "url": "https://github.com/inuyaksa/jquery.nicescroll/blob/master/MIT.LICENSE"
-        }
-    ]
+  "name": "nicescroll",
+  "version": "3.6.0",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/inuyaksa/jquery.nicescroll"
+  },
+  "title": "jQuery.NiceScroll",
+  "author": {
+    "name": "InuYaksa",
+    "url": "https://github.com/inuyaksa"
+  },
+  "licenses": [
+    {
+      "type": "MIT",
+      "url": "MIT.LICENSE"
+    }
+  ],
+  "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.",
+  "keywords": [
+    "nicescroll",
+    "jquery",
+    "interface",
+    "window",
+    "dom",
+    "div",
+    "scroll",
+    "ios",
+    "mobile",
+    "desktop",
+    "scrollbar",
+    "touch",
+    "android"
+  ],
+  "homepage": "https://github.com/inuyaksa/jquery.nicescroll",
+  "contributors": [
+    "inuyaksa",
+    "GianlucaGuarini",
+    "nkovacs",
+    "zcourts",
+    "philleepflorence",
+    "gustavnikolaj",
+    "laychopy",
+    "barraq",
+    "efoxbr",
+    "hypesystem",
+    "schweighart",
+    "ephigabay",
+    "shinnn",
+    "TNKSoftware"
+  ],
+  "files": [
+    "jquery.nicescroll.js",
+    "jquery.nicescroll.min.js",
+    "zoomico.png"
+  ],
+  "dependencies": {
+    "jquery": ">=1.8.3"
+  },
+  "devDependencies": {}
 }

BIN
zoomico.png


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.