Skip to content
Browse files

1.7.7 Release

- Pushed a bad 1.7.6 release :(
  • Loading branch information...
1 parent f4f2bc8 commit 06dc7241982f651686531a332a5cf5e709a4edd1 Jonathan Azoff committed
Showing with 7 additions and 7 deletions.
  1. +1 −1 README.md
  2. +1 −1 bower.json
  3. +2 −2 dist/jquery.overscroll.js
  4. +1 −1 dist/jquery.overscroll.min.js
  5. +1 −1 overscroll.jquery.json
  6. +1 −1 package.json
View
2 README.md
@@ -1,4 +1,4 @@
-Overscroll v1.7.5
+Overscroll v1.7.7
=================
Wednesday, February 12th, 2014
View
2 bower.json
@@ -1,6 +1,6 @@
{
"name": "jquery-overscroll",
- "version": "1.7.5",
+ "version": "1.7.7",
"dependencies": {
"jquery": ">=2.1.0"
},
View
4 dist/jquery.overscroll.js
@@ -1,5 +1,5 @@
/**
- * Overscroll 1.7.5
+ * Overscroll 1.7.7
* Touch scrolling for the browser
* http://azoff.github.io/overscroll/
*
@@ -15,7 +15,7 @@
*
* Date: Wednesday, February 11th 2014
*/
-/*! Overscroll 1.7.5 | (c) 2014 Jon Azoff | http://azof.fr/pYCzuM */
+/*! Overscroll 1.7.7 | (c) 2014 Jon Azoff | http://azof.fr/pYCzuM */
(function(global, dom, browser, math, wait, cancel, namespace, $, none){
// We want to run overscroll in strict-mode
View
2 dist/jquery.overscroll.min.js
@@ -1,3 +1,3 @@
-/*! Overscroll 1.7.5 | (c) 2014 Jon Azoff | http://azof.fr/pYCzuM */
+/*! Overscroll 1.7.7 | (c) 2014 Jon Azoff | http://azof.fr/pYCzuM */
!function(a,b,c,d,e,f,g,h,i){"use strict";function j(){if(j.memo)return j.memo;var c=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(a){e(a,1e3/60)},d=null===b.body;d&&b.documentElement.appendChild(b.createElement("body"));var f="";!function(){var c=b.createElement("div"),d=["webkit","moz","o","ms"];b.body.appendChild(c),h.each(d,function(a,b){c.style[b+"OverflowScrolling"]="touch"}),c.style.overflowScrolling="touch";var e=a.getComputedStyle(c);e.overflowScrolling?f="overflow-scrolling":h.each(d,function(a,b){return e[b+"OverflowScrolling"]&&(f="-"+b+"-overflow-scrolling"),!f}),c.parentNode.removeChild(c)}();var g={};return function(){var c=b.createElement("div"),d=["webkit","moz"],e="https://mail.google.com/mail/images/2/";return g={grab:"url("+e+"openhand.cur), move",grabbing:"url("+e+"closedhand.cur), move"},b.body.appendChild(c),h.each(d,function(b,d){var e,f="-"+d+"-grab";c.style.cursor=f;var h=a.getComputedStyle(c);return e=h.cursor===f,e&&(g={grab:"-"+d+"-grab",grabbing:"-"+d+"-grabbing"}),!e}),c.parentNode.removeChild(c),g}(),j.memo={animate:function(b){return c.call(a,b)},overflowScrolling:f,cursor:g},d&&b.documentElement.removeChild(b.body),j.memo}function k(a,b){b.trigger("overscroll:"+a)}function l(){return(new Date).getTime()}function m(a,b,c){return b.x=a.pageX,b.y=a.pageY,b.time=l(),b.index=c,b}function n(a,b,c,d){var e,f;a&&a.added&&(a.horizontal&&(e=c*(1+b.container.width/b.container.scrollWidth),f=d+b.thumbs.horizontal.top,a.horizontal.css("margin",f+"px 0 0 "+e+"px")),a.vertical&&(e=c+b.thumbs.vertical.left,f=d*(1+b.container.height/b.container.scrollHeight),a.vertical.css("margin",f+"px 0 0 "+e+"px")))}function o(a,b,c){a&&a.added&&!b.persistThumbs&&(c?(a.vertical&&a.vertical.stop(!0,!0).fadeTo("fast",J.thumbOpacity),a.horizontal&&a.horizontal.stop(!0,!0).fadeTo("fast",J.thumbOpacity)):(a.vertical&&a.vertical.fadeTo("fast",0),a.horizontal&&a.horizontal.fadeTo("fast",0)))}function p(a){var b,c="events",d=h._data?h._data(a[0],c):a.data(c);d&&d.click&&(b=d.click.slice(),a.off("click").one("click",function(){return h.each(b,function(b,c){a.click(c)}),!1}))}function q(a){var b=a.data,c=b.thumbs,d=b.options,e="mouseenter"===a.type;o(c,d,e)}function r(a){var b=a.data;b.flags.dragged||n(b.thumbs,b.sizing,this.scrollLeft,this.scrollTop)}function s(a){a.preventDefault();var b=a.data,c=b.options,d=b.sizing,g=b.thumbs,h=b.wheel,i=b.flags,j=a.originalEvent,k=0,l=0,m=0;i.drifting=!1,j.detail?(k=-j.detail,j.detailX&&(l=-j.detailX),j.detailY&&(m=-j.detailY)):j.wheelDelta&&(k=j.wheelDelta/J.wheelTicks,j.wheelDeltaX&&(l=j.wheelDeltaX/J.wheelTicks),j.wheelDeltaY&&(m=j.wheelDeltaY/J.wheelTicks)),k*=c.wheelDelta,l*=c.wheelDelta,m*=c.wheelDelta,h||(b.target.data(H).dragging=i.dragging=!0,b.wheel=h={timeout:null},o(g,c,!0)),"vertical"===c.wheelDirection?this.scrollTop-=k:"horizontal"===c.wheelDirection?this.scrollLeft-=k:(this.scrollLeft-=l,this.scrollTop-=m||k),h.timeout&&f(h.timeout),n(g,d,this.scrollLeft,this.scrollTop),h.timeout=e(function(){b.target.data(H).dragging=i.dragging=!1,o(g,c,b.wheel=null)},J.thumbTimeout)}function t(a){a.preventDefault();var b=a.data,c=a.originalEvent.touches,d=b.options,e=b.sizing,f=b.thumbs,g=b.position,h=b.flags,i=b.target.get(0);c&&c.length&&(a=c[0]),h.dragged||o(f,d,!0),h.dragged=!0,"vertical"!==d.direction&&(i.scrollLeft-=a.pageX-g.x),"horizontal"!==b.options.direction&&(i.scrollTop-=a.pageY-g.y),m(a,b.position),--b.capture.index<=0&&(b.target.data(H).dragging=h.dragging=!0,m(a,b.capture,J.captureThreshold)),n(f,e,i.scrollLeft,i.scrollTop)}function u(a,b,c){var d,e,f,g,h=b.data,i=h.capture,m=h.options,o=h.sizing,p=h.thumbs,q=l()-i.time,r=a.scrollLeft,s=a.scrollTop,t=J.driftDecay;return q>J.driftTimeout?void c(h):(d=m.scrollDelta*(b.pageX-i.x),e=m.scrollDelta*(b.pageY-i.y),"vertical"!==m.direction&&(r-=d),"horizontal"!==m.direction&&(s-=e),f=d/J.driftSequences,g=e/J.driftSequences,k("driftstart",h.target),h.drifting=!0,void j().animate(function u(){if(h.drifting){var b=1,d=-1;h.drifting=!1,(g>b&&a.scrollTop>s||d>g&&a.scrollTop<s)&&(h.drifting=!0,a.scrollTop-=g,g/=t),(f>b&&a.scrollLeft>r||d>f&&a.scrollLeft<r)&&(h.drifting=!0,a.scrollLeft-=f,f/=t),n(p,o,a.scrollLeft,a.scrollTop),j().animate(u)}else k("driftend",h.target),c(h)}))}function v(a){var b=a.data,c=a.originalEvent.touches,d=b.target,e=b.start=h(a.target),f=b.flags;f.drifting=!1,e.size()&&!e.is(b.options.cancelOn)&&(c||a.preventDefault(),j().overflowScrolling||(d.css("cursor",j().cursor.grabbing),d.data(H).dragging=f.dragging=f.dragged=!1,b.options.dragHold?h(document).on(I.drag,b,t):d.on(I.drag,b,t)),b.position=m(a,{}),b.capture=m(a,{},J.captureThreshold),k("dragstart",d))}function w(a){var b=a.data,c=b.target,d=b.options,e=b.flags,f=b.thumbs,g=function(){f&&!d.hoverThumbs&&o(f,d,!1)};d.dragHold?h(document).unbind(I.drag,t):c.unbind(I.drag,t),b.position&&(k("dragend",c),e.dragging&&!j().overflowScrolling?u(c.get(0),a,g):g()),e.dragging&&!j().overflowScrolling&&b.start&&b.start.is(a.target)&&p(b.start),c.data(H).dragging=b.start=b.capture=b.position=e.dragged=e.dragging=!1,c.css("cursor",j().cursor.grab)}function x(a){return a=h.extend({},K,a),"multi"!==a.direction&&a.direction!==a.wheelDirection&&(a.wheelDirection=a.direction),a.scrollDelta=d.abs(parseFloat(a.scrollDelta)),a.wheelDelta=d.abs(parseFloat(a.wheelDelta)),a.scrollLeft=a.scrollLeft===i?null:d.abs(parseFloat(a.scrollLeft)),a.scrollTop=a.scrollTop===i?null:d.abs(parseFloat(a.scrollTop)),a}function y(a){var b=h(a),c=b.width(),d=b.height(),e=c>=a.scrollWidth?c:a.scrollWidth,f=d>=a.scrollHeight?d:a.scrollHeight,g=e>c||f>d;return{valid:g,container:{width:c,height:d,scrollWidth:e,scrollHeight:f},thumbs:{horizontal:{width:c*c/e,height:J.thumbThickness,corner:J.thumbThickness/2,left:0,top:d-J.thumbThickness},vertical:{width:J.thumbThickness,height:d*d/f,corner:J.thumbThickness/2,left:c-J.thumbThickness,top:0}}}}function z(a,b){var c,d=h(a),e=d.data(H)||{},f=d.attr("style"),g=b?function(){e=d.data(H),c=e.thumbs,f?d.attr("style",f):d.removeAttr("style"),c&&(c.horizontal&&c.horizontal.remove(),c.vertical&&c.vertical.remove()),d.removeData(H).off(I.wheel,s).off(I.start,v).off(I.end,w).off(I.ignored,C)}:h.noop;return h.isFunction(e.remover)?e.remover:g}function A(a,b){return{position:"absolute",opacity:b.persistThumbs?J.thumbOpacity:0,"background-color":b.thumbColor,width:a.width+"px",height:a.height+"px","border-radius":a.corner+"px",margin:a.top+"px 0 0 "+a.left+"px","z-index":b.zIndex}}function B(a,b,c){var d="<div/>",e={},f=!1;return b.container.scrollWidth>0&&"vertical"!==c.direction&&(f=A(b.thumbs.horizontal,c),e.horizontal=h(d).css(f).prependTo(a)),b.container.scrollHeight>0&&"horizontal"!==c.direction&&(f=A(b.thumbs.vertical,c),e.vertical=h(d).css(f).prependTo(a)),e.added=!!f,e}function C(a){a.preventDefault()}function D(a,b){b=x(b);var c,d=y(a),e={options:b,sizing:d,flags:{dragging:!1},remover:z(a,!0)};(d.valid||b.ignoreSizing)&&(e.target=a=h(a).css({position:"relative",cursor:j().cursor.grab}).on(I.start,e,v).on(I.end,e,w).on(I.ignored,e,C),b.dragHold?h(document).on(I.end,e,w):e.target.on(I.end,e,w),null!==b.scrollLeft&&a.scrollLeft(b.scrollLeft),null!==b.scrollTop&&a.scrollTop(b.scrollTop),j().overflowScrolling?a.css(j().overflowScrolling,"touch"):a.on(I.scroll,e,r),b.captureWheel&&a.on(I.wheel,e,s),b.showThumbs?j().overflowScrolling?a.css("overflow","scroll"):(a.css("overflow","hidden"),e.thumbs=c=B(a,d,b),c.added&&(n(c,d,a.scrollLeft(),a.scrollTop()),b.hoverThumbs&&a.on(I.hover,e,q))):a.css("overflow","hidden"),a.data(H,e))}function E(a){z(a)()}function F(a){return this.removeOverscroll().each(function(){D(this,a)})}function G(){return this.each(function(){E(this)})}var H="overscroll",I={drag:"mousemove touchmove",end:"mouseup mouseleave click touchend touchcancel",hover:"mouseenter mouseleave",ignored:"select dragstart drag",scroll:"scroll",start:"mousedown touchstart",wheel:"mousewheel DOMMouseScroll"},J={captureThreshold:3,driftDecay:1.1,driftSequences:22,driftTimeout:100,scrollDelta:15,thumbOpacity:.7,thumbThickness:6,thumbTimeout:400,wheelDelta:20,wheelTicks:120},K={cancelOn:"select,input,textarea",direction:"multi",dragHold:!1,hoverThumbs:!1,scrollDelta:J.scrollDelta,showThumbs:!0,persistThumbs:!1,captureWheel:!0,wheelDelta:J.wheelDelta,wheelDirection:"multi",zIndex:999,ignoreSizing:!1,thumbColor:"black"};F.settings=J,h.extend(g,{overscroll:F,removeOverscroll:G})}(window,document,navigator,Math,setTimeout,clearTimeout,jQuery.fn,jQuery);
//# sourceMappingURL=dist/jquery.overscroll.map
View
2 overscroll.jquery.json
@@ -1,6 +1,6 @@
{
"name": "overscroll",
- "version": "1.7.5",
+ "version": "1.7.7",
"title": "Overscroll",
"description": "Overscroll is a jQuery Plugin and polyfill for mobile safari's overflow-scrolling style. It is intended for use on desktop browsers.",
"keywords": ["ios", "iphone", "ipad", "retina", "scroll", "drift", "drag", "bounce", "overflow"],
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "jquery-overscroll",
- "version": "1.7.5",
+ "version": "1.7.7",
"dependencies": { },
"devDependencies": {
"grunt": "~0.4.1",

0 comments on commit 06dc724

Please sign in to comment.
Something went wrong with that request. Please try again.