greensock-rails 1.18.3.0 → 1.18.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/greensock/rails/version.rb +1 -1
- data/vendor/assets/javascripts/greensock/TimelineLite.js +3 -3
- data/vendor/assets/javascripts/greensock/TimelineMax.js +4 -4
- data/vendor/assets/javascripts/greensock/TweenLite.js +3 -3
- data/vendor/assets/javascripts/greensock/TweenMax.js +18 -10
- data/vendor/assets/javascripts/greensock/plugins/CSSPlugin.js +14 -6
- data/vendor/assets/javascripts/greensock/utils/Draggable.js +35 -19
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbf0e3b6ead100678741ebf8345426e4f7ebe884
|
4
|
+
data.tar.gz: 72b2330fa7094406d3021719626df021de9c18ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd39b2d7353e8e76009609f15d1fcc8ff5627384dd502e114a0005cf88b690fb142ae4b026b84d71e8ee3ac5b0cd5f483badb367995c95b2bc8c6f50d755eb95
|
7
|
+
data.tar.gz: 8bb67657f5bed32341933bd37ffc0183c712ddea1a92cbc4290a3188c8583c8e3bfd89b121ae35f6a445a949a46250544fc63a840a5933459ce73af90a3129c5
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* VERSION: 1.18.
|
3
|
-
* DATE: 2016-04-
|
2
|
+
* VERSION: 1.18.4
|
3
|
+
* DATE: 2016-04-26
|
4
4
|
* UPDATES AND DOCS AT: http://greensock.com
|
5
5
|
*
|
6
6
|
* @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
|
@@ -69,7 +69,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
69
69
|
},
|
70
70
|
p = TimelineLite.prototype = new SimpleTimeline();
|
71
71
|
|
72
|
-
TimelineLite.version = "1.18.
|
72
|
+
TimelineLite.version = "1.18.4";
|
73
73
|
p.constructor = TimelineLite;
|
74
74
|
p.kill()._gc = p._forcingPlayhead = p._hasPause = false;
|
75
75
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* VERSION: 1.18.
|
3
|
-
* DATE: 2016-04-
|
2
|
+
* VERSION: 1.18.4
|
3
|
+
* DATE: 2016-04-26
|
4
4
|
* UPDATES AND DOCS AT: http://greensock.com
|
5
5
|
*
|
6
6
|
* @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
|
@@ -33,7 +33,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
33
33
|
|
34
34
|
p.constructor = TimelineMax;
|
35
35
|
p.kill()._gc = false;
|
36
|
-
TimelineMax.version = "1.18.
|
36
|
+
TimelineMax.version = "1.18.4";
|
37
37
|
|
38
38
|
p.invalidate = function() {
|
39
39
|
this._yoyo = (this.vars.yoyo === true);
|
@@ -573,7 +573,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
573
573
|
},
|
574
574
|
p = TimelineLite.prototype = new SimpleTimeline();
|
575
575
|
|
576
|
-
TimelineLite.version = "1.18.
|
576
|
+
TimelineLite.version = "1.18.4";
|
577
577
|
p.constructor = TimelineLite;
|
578
578
|
p.kill()._gc = p._forcingPlayhead = p._hasPause = false;
|
579
579
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* VERSION: 1.18.
|
3
|
-
* DATE: 2016-04-
|
2
|
+
* VERSION: 1.18.4
|
3
|
+
* DATE: 2016-04-26
|
4
4
|
* UPDATES AND DOCS AT: http://greensock.com
|
5
5
|
*
|
6
6
|
* @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
|
@@ -925,7 +925,7 @@
|
|
925
925
|
p._firstPT = p._targets = p._overwrittenProps = p._startAt = null;
|
926
926
|
p._notifyPluginsOfEnabled = p._lazy = false;
|
927
927
|
|
928
|
-
TweenLite.version = "1.18.
|
928
|
+
TweenLite.version = "1.18.4";
|
929
929
|
TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);
|
930
930
|
TweenLite.defaultOverwrite = "auto";
|
931
931
|
TweenLite.ticker = _ticker;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* VERSION: 1.18.
|
3
|
-
* DATE: 2016-04-
|
2
|
+
* VERSION: 1.18.4
|
3
|
+
* DATE: 2016-04-26
|
4
4
|
* UPDATES AND DOCS AT: http://greensock.com
|
5
5
|
*
|
6
6
|
* Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
|
@@ -50,7 +50,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
50
50
|
p = TweenMax.prototype = TweenLite.to({}, 0.1, {}),
|
51
51
|
_blankArray = [];
|
52
52
|
|
53
|
-
TweenMax.version = "1.18.
|
53
|
+
TweenMax.version = "1.18.4";
|
54
54
|
p.constructor = TweenMax;
|
55
55
|
p.kill()._gc = false;
|
56
56
|
TweenMax.killTweensOf = TweenMax.killDelayedCallsTo = TweenLite.killTweensOf;
|
@@ -683,7 +683,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
683
683
|
},
|
684
684
|
p = TimelineLite.prototype = new SimpleTimeline();
|
685
685
|
|
686
|
-
TimelineLite.version = "1.18.
|
686
|
+
TimelineLite.version = "1.18.4";
|
687
687
|
p.constructor = TimelineLite;
|
688
688
|
p.kill()._gc = p._forcingPlayhead = p._hasPause = false;
|
689
689
|
|
@@ -1409,7 +1409,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
1409
1409
|
|
1410
1410
|
p.constructor = TimelineMax;
|
1411
1411
|
p.kill()._gc = false;
|
1412
|
-
TimelineMax.version = "1.18.
|
1412
|
+
TimelineMax.version = "1.18.4";
|
1413
1413
|
|
1414
1414
|
p.invalidate = function() {
|
1415
1415
|
this._yoyo = (this.vars.yoyo === true);
|
@@ -2502,7 +2502,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
2502
2502
|
p = CSSPlugin.prototype = new TweenPlugin("css");
|
2503
2503
|
|
2504
2504
|
p.constructor = CSSPlugin;
|
2505
|
-
CSSPlugin.version = "1.18.
|
2505
|
+
CSSPlugin.version = "1.18.4";
|
2506
2506
|
CSSPlugin.API = 2;
|
2507
2507
|
CSSPlugin.defaultTransformPerspective = 0;
|
2508
2508
|
CSSPlugin.defaultSkewType = "compensated";
|
@@ -2511,7 +2511,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
2511
2511
|
CSSPlugin.suffixMap = {top:p, right:p, bottom:p, left:p, width:p, height:p, fontSize:p, padding:p, margin:p, perspective:p, lineHeight:""};
|
2512
2512
|
|
2513
2513
|
|
2514
|
-
var _numExp = /(?:\-|\.|\b)
|
2514
|
+
var _numExp = /(?:\-|\.|\b)(\d|\.|e\-)+/g,
|
2515
2515
|
_relNumExp = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,
|
2516
2516
|
_valuesExp = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, //finds all the values that begin with numbers or += or -= and then a number. Includes suffixes. We use this to split complex values apart like "1px 5px 20px rgb(255,102,51)"
|
2517
2517
|
_NaNExp = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, //also allows scientific notation and doesn't kill the leading -/+ in -= and +=
|
@@ -2759,6 +2759,11 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
2759
2759
|
* @return {number} Dimension (in pixels)
|
2760
2760
|
*/
|
2761
2761
|
_getDimension = function(t, p, cs) {
|
2762
|
+
if ((t.nodeName + "").toLowerCase() === "svg") { //Chrome no longer supports offsetWidth/offsetHeight on SVG elements.
|
2763
|
+
return (cs || _getComputedStyle(t))[p] || 0;
|
2764
|
+
} else if (t.getBBox && _isSVG(t)) {
|
2765
|
+
return t.getBBox()[p] || 0;
|
2766
|
+
}
|
2762
2767
|
var v = parseFloat((p === "width") ? t.offsetWidth : t.offsetHeight),
|
2763
2768
|
a = _dimensions[p],
|
2764
2769
|
i = a.length;
|
@@ -3432,7 +3437,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
3432
3437
|
p.appendXtra = function(pfx, s, c, sfx, r, pad) {
|
3433
3438
|
var pt = this,
|
3434
3439
|
l = pt.l;
|
3435
|
-
pt["xs" + l] += (pad && l) ? " " + pfx : pfx || "";
|
3440
|
+
pt["xs" + l] += (pad && (l || pt["xs" + l])) ? " " + pfx : pfx || "";
|
3436
3441
|
if (!c) if (l !== 0 && !pt.plugin) { //typically we'll combine non-changing values right into the xs to optimize performance, but we don't combine them when there's a plugin that will be tweening the values because it may depend on the values being split apart, like for a bezier, if a value doesn't change between the first and second iteration but then it does on the 3rd, we'll run into trouble because there's no xn slot for that value!
|
3437
3442
|
pt["xs" + l] += s + (sfx || "");
|
3438
3443
|
return pt;
|
@@ -3721,7 +3726,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
3721
3726
|
} catch (e) {}
|
3722
3727
|
},
|
3723
3728
|
_isSVG = function(e) { //reports if the element is an SVG on which getBBox() actually works
|
3724
|
-
return !!(_SVGElement && e.getBBox && e.getCTM && _canGetBBox(e));
|
3729
|
+
return !!(_SVGElement && e.getBBox && e.getCTM && _canGetBBox(e) && (!e.parentNode || (e.parentNode.getBBox && e.parentNode.getCTM)));
|
3725
3730
|
},
|
3726
3731
|
_identity2DMatrix = [1,0,0,1,0,0],
|
3727
3732
|
_getMatrix = function(e, force2D) {
|
@@ -4483,6 +4488,9 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
4483
4488
|
}
|
4484
4489
|
return pt;
|
4485
4490
|
}, prefix:true, formatter:_getFormatter("0px 0px 0px 0px", false, true)});
|
4491
|
+
_registerComplexSpecialProp("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius", {defaultValue:"0px", parser:function(t, e, p, cssp, pt, plugin) {
|
4492
|
+
return _parseComplex(t.style, p, this.format(_getStyle(t, p, _cs, false, "0px 0px")), this.format(e), false, "0px", pt);
|
4493
|
+
}, prefix:true, formatter:_getFormatter("0px 0px", false, true)});
|
4486
4494
|
_registerComplexSpecialProp("backgroundPosition", {defaultValue:"0 0", parser:function(t, e, p, cssp, pt, plugin) {
|
4487
4495
|
var bp = "background-position",
|
4488
4496
|
cs = (_cs || _getComputedStyle(t, null)),
|
@@ -6674,7 +6682,7 @@ if (_gsScope._gsDefine) { _gsScope._gsQueue.pop()(); } //necessary in case Tween
|
|
6674
6682
|
p._firstPT = p._targets = p._overwrittenProps = p._startAt = null;
|
6675
6683
|
p._notifyPluginsOfEnabled = p._lazy = false;
|
6676
6684
|
|
6677
|
-
TweenLite.version = "1.18.
|
6685
|
+
TweenLite.version = "1.18.4";
|
6678
6686
|
TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);
|
6679
6687
|
TweenLite.defaultOverwrite = "auto";
|
6680
6688
|
TweenLite.ticker = _ticker;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* VERSION: 1.18.
|
3
|
-
* DATE: 2016-04-
|
2
|
+
* VERSION: 1.18.4
|
3
|
+
* DATE: 2016-04-26
|
4
4
|
* UPDATES AND DOCS AT: http://greensock.com
|
5
5
|
*
|
6
6
|
* @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
|
@@ -31,7 +31,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
31
31
|
p = CSSPlugin.prototype = new TweenPlugin("css");
|
32
32
|
|
33
33
|
p.constructor = CSSPlugin;
|
34
|
-
CSSPlugin.version = "1.18.
|
34
|
+
CSSPlugin.version = "1.18.4";
|
35
35
|
CSSPlugin.API = 2;
|
36
36
|
CSSPlugin.defaultTransformPerspective = 0;
|
37
37
|
CSSPlugin.defaultSkewType = "compensated";
|
@@ -40,7 +40,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
40
40
|
CSSPlugin.suffixMap = {top:p, right:p, bottom:p, left:p, width:p, height:p, fontSize:p, padding:p, margin:p, perspective:p, lineHeight:""};
|
41
41
|
|
42
42
|
|
43
|
-
var _numExp = /(?:\-|\.|\b)
|
43
|
+
var _numExp = /(?:\-|\.|\b)(\d|\.|e\-)+/g,
|
44
44
|
_relNumExp = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,
|
45
45
|
_valuesExp = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, //finds all the values that begin with numbers or += or -= and then a number. Includes suffixes. We use this to split complex values apart like "1px 5px 20px rgb(255,102,51)"
|
46
46
|
_NaNExp = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, //also allows scientific notation and doesn't kill the leading -/+ in -= and +=
|
@@ -288,6 +288,11 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
288
288
|
* @return {number} Dimension (in pixels)
|
289
289
|
*/
|
290
290
|
_getDimension = function(t, p, cs) {
|
291
|
+
if ((t.nodeName + "").toLowerCase() === "svg") { //Chrome no longer supports offsetWidth/offsetHeight on SVG elements.
|
292
|
+
return (cs || _getComputedStyle(t))[p] || 0;
|
293
|
+
} else if (t.getBBox && _isSVG(t)) {
|
294
|
+
return t.getBBox()[p] || 0;
|
295
|
+
}
|
291
296
|
var v = parseFloat((p === "width") ? t.offsetWidth : t.offsetHeight),
|
292
297
|
a = _dimensions[p],
|
293
298
|
i = a.length;
|
@@ -961,7 +966,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
961
966
|
p.appendXtra = function(pfx, s, c, sfx, r, pad) {
|
962
967
|
var pt = this,
|
963
968
|
l = pt.l;
|
964
|
-
pt["xs" + l] += (pad && l) ? " " + pfx : pfx || "";
|
969
|
+
pt["xs" + l] += (pad && (l || pt["xs" + l])) ? " " + pfx : pfx || "";
|
965
970
|
if (!c) if (l !== 0 && !pt.plugin) { //typically we'll combine non-changing values right into the xs to optimize performance, but we don't combine them when there's a plugin that will be tweening the values because it may depend on the values being split apart, like for a bezier, if a value doesn't change between the first and second iteration but then it does on the 3rd, we'll run into trouble because there's no xn slot for that value!
|
966
971
|
pt["xs" + l] += s + (sfx || "");
|
967
972
|
return pt;
|
@@ -1250,7 +1255,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
1250
1255
|
} catch (e) {}
|
1251
1256
|
},
|
1252
1257
|
_isSVG = function(e) { //reports if the element is an SVG on which getBBox() actually works
|
1253
|
-
return !!(_SVGElement && e.getBBox && e.getCTM && _canGetBBox(e));
|
1258
|
+
return !!(_SVGElement && e.getBBox && e.getCTM && _canGetBBox(e) && (!e.parentNode || (e.parentNode.getBBox && e.parentNode.getCTM)));
|
1254
1259
|
},
|
1255
1260
|
_identity2DMatrix = [1,0,0,1,0,0],
|
1256
1261
|
_getMatrix = function(e, force2D) {
|
@@ -2012,6 +2017,9 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
2012
2017
|
}
|
2013
2018
|
return pt;
|
2014
2019
|
}, prefix:true, formatter:_getFormatter("0px 0px 0px 0px", false, true)});
|
2020
|
+
_registerComplexSpecialProp("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius", {defaultValue:"0px", parser:function(t, e, p, cssp, pt, plugin) {
|
2021
|
+
return _parseComplex(t.style, p, this.format(_getStyle(t, p, _cs, false, "0px 0px")), this.format(e), false, "0px", pt);
|
2022
|
+
}, prefix:true, formatter:_getFormatter("0px 0px", false, true)});
|
2015
2023
|
_registerComplexSpecialProp("backgroundPosition", {defaultValue:"0 0", parser:function(t, e, p, cssp, pt, plugin) {
|
2016
2024
|
var bp = "background-position",
|
2017
2025
|
cs = (_cs || _getComputedStyle(t, null)),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* VERSION: 0.14.
|
3
|
-
* DATE: 2016-04-
|
2
|
+
* VERSION: 0.14.6
|
3
|
+
* DATE: 2016-04-26
|
4
4
|
* UPDATES AND DOCS AT: http://greensock.com
|
5
5
|
*
|
6
6
|
* Requires TweenLite and CSSPlugin version 1.17.0 or later (TweenMax contains both TweenLite and CSSPlugin). ThrowPropsPlugin is required for momentum-based continuation of movement after the mouse/touch is released (ThrowPropsPlugin is a membership benefit of Club GreenSock - http://greensock.com/club/).
|
@@ -47,7 +47,6 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
47
47
|
_isAndroid = (navigator.userAgent.toLowerCase().indexOf("android") !== -1), //Android handles touch events in an odd way and it's virtually impossible to "feature test" so we resort to UA sniffing
|
48
48
|
_lastDragTime = 0,
|
49
49
|
_temp1 = {}, // a simple object we reuse and populate (usually x/y properties) to conserve memory and improve performance.
|
50
|
-
_temp2 = {},
|
51
50
|
_windowProxy = {}, //memory/performance optimization - we reuse this object during autoScroll to store window-related bounds/offsets.
|
52
51
|
_slice = function(a) { //don't use Array.prototype.slice.call(target, 0) because that doesn't work in IE8 with a NodeList that's returned by querySelectorAll()
|
53
52
|
if (typeof(a) === "string") {
|
@@ -300,6 +299,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
300
299
|
_svgBorderScales,
|
301
300
|
_svgScrollOffset,
|
302
301
|
_hasBorderBug,
|
302
|
+
_hasReparentBug,//some browsers, like Chrome 49, alter the offsetTop/offsetLeft/offsetParent of elements when a non-identity transform is applied.
|
303
303
|
_setEnvironmentVariables = function() { //some browsers factor the border into the SVG coordinate space, some don't (like Firefox). Some apply transforms to them, some don't. We feature-detect here so we know how to handle the border(s). We can't do this immediately - we must wait for the document.body to exist.
|
304
304
|
if (!_doc.createElementNS) {
|
305
305
|
_svgBorderFactor = 0;
|
@@ -313,9 +313,13 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
313
313
|
parent = _doc.body || _docElement,
|
314
314
|
matrix, e1, point, oldValue;
|
315
315
|
if (_doc.body && _transformProp) {
|
316
|
-
style.position =
|
316
|
+
style.position = "absolute";
|
317
317
|
parent.appendChild(wrapper);
|
318
318
|
wrapper.appendChild(div);
|
319
|
+
oldValue = div.offsetParent;
|
320
|
+
wrapper.style[_transformProp] = "rotate(1deg)";
|
321
|
+
_hasReparentBug = (div.offsetParent === oldValue);
|
322
|
+
wrapper.style.position = "absolute";
|
319
323
|
style.height = "10px";
|
320
324
|
oldValue = div.offsetTop;
|
321
325
|
wrapper.style.border = "5px solid red";
|
@@ -533,7 +537,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
533
537
|
if (e.getBBox && (e.getAttribute("transform") + "").indexOf("matrix") !== -1) { //SVG can store transform data in its "transform" attribute instead of the CSS, so look for that here (only accept matrix()).
|
534
538
|
m = e.getAttribute("transform");
|
535
539
|
}
|
536
|
-
m = (m + "").match(/(?:\-|\.|\b)
|
540
|
+
m = (m + "").match(/(?:\-|\.|\b)(\d|\.|e\-)+/g) || [1,0,0,1,0,0];
|
537
541
|
if (m.length > 6) {
|
538
542
|
m = [m[0], m[1], m[4], m[5], m[12], m[13]];
|
539
543
|
}
|
@@ -596,7 +600,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
596
600
|
m[4] += _getDocScrollLeft();
|
597
601
|
m[5] += _getDocScrollTop();
|
598
602
|
}
|
599
|
-
if (parent && parent !== _docElement && parentOffsetParent === offsets.offsetParent && !parentCache.isSVG) {
|
603
|
+
if (parent && parent !== _docElement && parentOffsetParent === offsets.offsetParent && !parentCache.isSVG && (!_hasReparentBug || _getOffset2DMatrix(parent).join("") === "100100")) {
|
600
604
|
offsets = (parentCache.isSVGRoot) ? _getSVGOffsets(parent) : parent;
|
601
605
|
m[4] -= offsets.offsetLeft || 0;
|
602
606
|
m[5] -= offsets.offsetTop || 0;
|
@@ -1422,6 +1426,14 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
1422
1426
|
recordStartPositions = function() {
|
1423
1427
|
var edgeTolerance = 1 - self.edgeResistance;
|
1424
1428
|
updateMatrix();
|
1429
|
+
if (matrix) {
|
1430
|
+
startPointerX = self.pointerX * matrix[0] + self.pointerY * matrix[2] + matrix[4]; //translate to local coordinate system
|
1431
|
+
startPointerY = self.pointerX * matrix[1] + self.pointerY * matrix[3] + matrix[5];
|
1432
|
+
}
|
1433
|
+
if (dirty) {
|
1434
|
+
setPointerPosition(self.pointerX, self.pointerY);
|
1435
|
+
render(true);
|
1436
|
+
}
|
1425
1437
|
if (scrollProxy) {
|
1426
1438
|
calculateBounds();
|
1427
1439
|
startElementY = scrollProxy.top();
|
@@ -1438,7 +1450,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
1438
1450
|
rotationOrigin = _localToGlobal(target, {x:0, y:0});
|
1439
1451
|
syncXY(true, true);
|
1440
1452
|
startElementX = self.x; //starting rotation (x always refers to rotation in type:"rotation", measured in degrees)
|
1441
|
-
startElementY = self.y = Math.atan2(rotationOrigin.y -
|
1453
|
+
startElementY = self.y = Math.atan2(rotationOrigin.y - self.pointerY, self.pointerX - rotationOrigin.x) * _RAD2DEG;
|
1442
1454
|
} else {
|
1443
1455
|
startScrollTop = target.parentNode ? target.parentNode.scrollTop || 0 : 0;
|
1444
1456
|
startScrollLeft = target.parentNode ? target.parentNode.scrollLeft || 0 : 0;
|
@@ -1555,11 +1567,6 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
1555
1567
|
target.parentNode.appendChild(_placeholderDiv);
|
1556
1568
|
}
|
1557
1569
|
recordStartPositions();
|
1558
|
-
if (matrix) {
|
1559
|
-
temp = startPointerX * matrix[0] + startPointerY * matrix[2] + matrix[4];
|
1560
|
-
startPointerY = startPointerX * matrix[1] + startPointerY * matrix[3] + matrix[5];
|
1561
|
-
startPointerX = temp;
|
1562
|
-
}
|
1563
1570
|
if (self.tween) {
|
1564
1571
|
self.tween.kill();
|
1565
1572
|
}
|
@@ -1844,8 +1851,13 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
1844
1851
|
deltaX = parent.scrollLeft - parent._gsScrollX,
|
1845
1852
|
deltaY = parent.scrollTop - parent._gsScrollY;
|
1846
1853
|
if (deltaX || deltaY) {
|
1847
|
-
|
1848
|
-
|
1854
|
+
if (matrix) {
|
1855
|
+
startPointerX -= deltaX * matrix[0] + deltaY * matrix[2];
|
1856
|
+
startPointerY -= deltaY * matrix[3] + deltaX * matrix[1];
|
1857
|
+
} else {
|
1858
|
+
startPointerX -= deltaX;
|
1859
|
+
startPointerY -= deltaY;
|
1860
|
+
}
|
1849
1861
|
parent._gsScrollX += deltaX;
|
1850
1862
|
parent._gsScrollY += deltaY;
|
1851
1863
|
setPointerPosition(self.pointerX, self.pointerY);
|
@@ -1956,7 +1968,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
1956
1968
|
self.y = self.endY = y;
|
1957
1969
|
}
|
1958
1970
|
dirty = true;
|
1959
|
-
render();
|
1971
|
+
render(true);
|
1960
1972
|
if (self.autoScroll && !self.isDragging) {
|
1961
1973
|
_recordMaxScrolls(target.parentNode);
|
1962
1974
|
e = target;
|
@@ -1990,7 +2002,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
1990
2002
|
self.applyBounds();
|
1991
2003
|
} else {
|
1992
2004
|
if (dirty && ignoreExternalChanges) {
|
1993
|
-
render();
|
2005
|
+
render(true);
|
1994
2006
|
}
|
1995
2007
|
syncXY(true);
|
1996
2008
|
}
|
@@ -2000,7 +2012,11 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
2000
2012
|
if (self.autoScroll) {
|
2001
2013
|
_recordMaxScrolls(target.parentNode);
|
2002
2014
|
checkAutoScrollBounds = self.isDragging;
|
2003
|
-
render();
|
2015
|
+
render(true);
|
2016
|
+
}
|
2017
|
+
if (self.autoScroll) { //in case reparenting occurred.
|
2018
|
+
_removeScrollListener(target, updateScroll);
|
2019
|
+
_addScrollListener(target, updateScroll);
|
2004
2020
|
}
|
2005
2021
|
return self;
|
2006
2022
|
};
|
@@ -2022,7 +2038,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
2022
2038
|
}
|
2023
2039
|
_setSelectable(triggers, false);
|
2024
2040
|
}
|
2025
|
-
_addScrollListener(
|
2041
|
+
_addScrollListener(target, updateScroll);
|
2026
2042
|
enabled = true;
|
2027
2043
|
if (ThrowPropsPlugin && type !== "soft") {
|
2028
2044
|
ThrowPropsPlugin.track(scrollProxy || target, (xyMode ? "x,y" : rotationMode ? "rotation" : "top,left"));
|
@@ -2143,7 +2159,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
|
|
2143
2159
|
p.constructor = Draggable;
|
2144
2160
|
p.pointerX = p.pointerY = 0;
|
2145
2161
|
p.isDragging = p.isPressed = false;
|
2146
|
-
Draggable.version = "0.14.
|
2162
|
+
Draggable.version = "0.14.6";
|
2147
2163
|
Draggable.zIndex = 1000;
|
2148
2164
|
|
2149
2165
|
_addListener(_doc, "touchcancel", function() {
|