Browse Source

3.7.6 - angular fix

Fixes
- Error in remove() using angular nicescroll with modal popup #683
InuYaksa 7 years ago
parent
commit
54d164e97a

+ 1 - 1
README.md

@@ -1,5 +1,5 @@
 # jQuery.NiceScroll
-v. 3.7.5
+v. 3.7.6
 
 ## The best nicescroll release ever - extremely smooth and consistent in modern browsers and mobile devices, with low resource usage
 

+ 0 - 14
changelog_3.7.5.txt

@@ -1,14 +0,0 @@
-Changelog nicescroll release 3.7.5
-https://nicescroll.areaaperta.com/
-https://github.com/inuyaksa/jquery.nicescroll
-
-
-
-Fixes
-- Calling .remove() throws an error after update to v. 3.7.4 #681
-- more robust hybrid system support mouse + touch events aka no drag and scroll #676
-- scroll is not working on edge and firefox browsers in touchscreen laptops #677
-- typos on navigator.maxTouchPoints
-
-Changes 
-- remove outdated self.visibility

+ 11 - 0
changelog_3.7.6.txt

@@ -0,0 +1,11 @@
+Changelog nicescroll release 3.7.6
+https://nicescroll.areaaperta.com/
+https://github.com/inuyaksa/jquery.nicescroll
+
+
+
+Fixes
+- Error in remove() using angular nicescroll with modal popup #683
+
+Changes 
+- none

File diff suppressed because it is too large
+ 0 - 1
demo/js/jquery.nicescroll.min.js


+ 1 - 1
dist/jquery.nicescroll.iframehelper.min.js

@@ -1,2 +1,2 @@
-/* iframe helper for jquery.nicescroll v3.7.5 InuYaksa - MIT - https://nicescroll.areaaperta.com */
+/* iframe helper for jquery.nicescroll v3.7.6 InuYaksa - MIT - https://nicescroll.areaaperta.com */
 !function(e,t){function n(t){var n=e.createEvent("MouseEvents");n.initEvent("wheel",!0,!0),n.deltaMode=t.deltaMode,n.deltaX=t.deltaX,n.deltaY=t.deltaY,n.deltaZ=t.deltaZ,n.wheelDelta=t.wheelDelta,n.wheelDeltaX=t.wheelDeltaX,n.wheelDeltaY=t.wheelDeltaY,r.dispatchEvent(n)}function l(e){do{if(void 0!==$.data(e,"__nicescroll"))return e;e=e.parentNode||!1}while(e);return!1}var a=e.body,r=t.parent;if(r&&"createEvent"in e){a.addEventListener("wheel",n)}if(t.addEventListener){var i=function(){var t=e.createElement("style");return t.appendChild(e.createTextNode("")),e.head.appendChild(t),t.sheet}(),d=null,o=null,c=[];t.addEventListener("scroll",function(e){o&&t.scrollTo(c[0],c[1])}),t.addEventListener("load",function(){var e=!1;$.nicescroll.each(function(){var t=this;t.scrollstart(function(){e||i.insertRule("iframe { pointer-events: none !important; }",0),e=!0}),t.scrollend(function(){e&&i.deleteRule(0),e=!1})}),$("iframe").each(function(){this.addEventListener("mouseenter",function(e){var n=l(d=e.target);o=n,c=[t.scrollX,t.scrollY]}),this.addEventListener("mouseleave",function(e){d=o=null})})})}}(document,window);

+ 4 - 4
dist/jquery.nicescroll.js

@@ -1,6 +1,6 @@
 /* jquery.nicescroll
--- version 3.7.5
--- copyright 2017-07-13 InuYaksa*2017
+-- version 3.7.6
+-- copyright 2017-07-19 InuYaksa*2017
 -- licensed under the MIT
 --
 -- https://nicescroll.areaaperta.com/
@@ -261,7 +261,7 @@
 
     var self = this;
 
-    this.version = '3.7.5';
+    this.version = '3.7.6';
     this.name = 'nicescroll';
 
     this.me = me;
@@ -2514,7 +2514,7 @@
 
     this.undelegate = function (dom, name, fn, bubble, active) {
       var de = delegatevents[name]||false;
-      if (de) {
+      if (de&&de.l) {  // quick fix #683
         for (var a=0,l=de.l.length;a<l;a++) {
           if (de.a[a] === self.id) {
             de.a.splice(a);

File diff suppressed because it is too large
+ 0 - 1
dist/jquery.nicescroll.min.js


+ 1 - 1
jquery.nicescroll.iframehelper.min.js

@@ -1,2 +1,2 @@
-/* iframe helper for jquery.nicescroll v3.7.5 InuYaksa - MIT - https://nicescroll.areaaperta.com */
+/* iframe helper for jquery.nicescroll v3.7.6 InuYaksa - MIT - https://nicescroll.areaaperta.com */
 !function(e,t){function n(t){var n=e.createEvent("MouseEvents");n.initEvent("wheel",!0,!0),n.deltaMode=t.deltaMode,n.deltaX=t.deltaX,n.deltaY=t.deltaY,n.deltaZ=t.deltaZ,n.wheelDelta=t.wheelDelta,n.wheelDeltaX=t.wheelDeltaX,n.wheelDeltaY=t.wheelDeltaY,r.dispatchEvent(n)}function l(e){do{if(void 0!==$.data(e,"__nicescroll"))return e;e=e.parentNode||!1}while(e);return!1}var a=e.body,r=t.parent;if(r&&"createEvent"in e){a.addEventListener("wheel",n)}if(t.addEventListener){var i=function(){var t=e.createElement("style");return t.appendChild(e.createTextNode("")),e.head.appendChild(t),t.sheet}(),d=null,o=null,c=[];t.addEventListener("scroll",function(e){o&&t.scrollTo(c[0],c[1])}),t.addEventListener("load",function(){var e=!1;$.nicescroll.each(function(){var t=this;t.scrollstart(function(){e||i.insertRule("iframe { pointer-events: none !important; }",0),e=!0}),t.scrollend(function(){e&&i.deleteRule(0),e=!1})}),$("iframe").each(function(){this.addEventListener("mouseenter",function(e){var n=l(d=e.target);o=n,c=[t.scrollX,t.scrollY]}),this.addEventListener("mouseleave",function(e){d=o=null})})})}}(document,window);

+ 4 - 4
jquery.nicescroll.js

@@ -1,6 +1,6 @@
 /* jquery.nicescroll
--- version 3.7.5
--- copyright 2017-07-13 InuYaksa*2017
+-- version 3.7.6
+-- copyright 2017-07-19 InuYaksa*2017
 -- licensed under the MIT
 --
 -- https://nicescroll.areaaperta.com/
@@ -261,7 +261,7 @@
 
     var self = this;
 
-    this.version = '3.7.5';
+    this.version = '3.7.6';
     this.name = 'nicescroll';
 
     this.me = me;
@@ -2514,7 +2514,7 @@
 
     this.undelegate = function (dom, name, fn, bubble, active) {
       var de = delegatevents[name]||false;
-      if (de) {
+      if (de&&de.l) {  // quick fix #683
         for (var a=0,l=de.l.length;a<l;a++) {
           if (de.a[a] === self.id) {
             de.a.splice(a);

File diff suppressed because it is too large
+ 0 - 1
jquery.nicescroll.min.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "jquery.nicescroll",
-  "version": "3.7.5",
+  "version": "3.7.6",
   "bugs": "https://github.com/inuyaksa/jquery.nicescroll/issues",
   "repository": {
     "type": "git",

Some files were not shown because too many files changed in this diff