Skip to content

Commit 0ce3461

Browse files
committed
3.10.3
- NEW: ScrollSmoother now has a static .refresh() and instance-level .refresh() methods as a convenience (identical to ScrollTrigger.refresh() and smoother.scrollTrigger.refresh() but we found those weren't as intuitive). - IMPROVED: Observer will trigger an onMove when an onDrag occurs (rather than prioritizing the onDrag over onMove) - IMPROVED: if you set paused(true) on a ScrollSmoother, it'll now allow wheel scrolling on things other than the body (like modals). See https://greensock.com/forums/topic/31685-scrollsmoother-and-modal/ - IMPROVED: if you forget to add a wrapper element for ScrollSmoother and it automatically generates one for you and then you (or your framework) call ScrollSmoother.create() AGAIN, it'll find that first wrapper that was auto-generated and reuse that instead of creating another one. See https://greensock.com/forums/topic/31790-scroll-smoother-with-swup/ - FIXED: input elements like <input>, <select>, etc. will now get focus properly when you tap on them on a mobile device when normalizeScroll is enabled. - FIXED: if you paused(true) a ScrollSmoother, buttons may not respond to clicks. - FIXED: when a ScrollSmoother's .offset() was called, the target element would always end up with a transform (even if it was translate(0,0)). It wouldn't visually change anything, but the mere fact that it had a transform could have negative effects like creating a new container boundary. - FIXED: ScrollSmoother.scrollTo(...) may (in one particular situation) scroll smoothly even if you set the smooth parameter to false. - FIXED: if you disable() an Observer WHILE dragging, it didn't may continue firing onDrag events until released. - FIXED: if you kill() a ScrollSmoother, it didn't reset the height of the <body> to "auto". See https://greensock.com/forums/topic/31639-scrollsmoother-refresh-after-routing/ - FIXED: pinning could be thrown off if the window gets resized after scrolling (regression in 3.10.0). See https://greensock.com/forums/topic/31699-scrolltrigger-pin-breaks-on-page-rsize/ - FIXED: a regression in 3.10.0 could cause snapping not to work properly after resize in some scenarios. See https://greensock.com/forums/topic/31633-cannot-get-scrollsmoother-to-work-with-scrolltrigger-snapping/ - FIXED: if you try animating an SVG <mask> on a motion path, it would throw an error because <mask> elements don't have a way to get local bounding box coordinates like .getBBox(). - FIXED: if you enable ignoreMobileResize in ScrollTrigger/ScrollSmoother, it may not trigger a refresh when the user changes their mobile device's orientation.
1 parent e7fc9b7 commit 0ce3461

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1058
-505
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ View the <a href="https://greensock.com/docs">full documentation here</a>, inclu
1818

1919
### CDN
2020
```html
21-
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.2/gsap.min.js"></script>
21+
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.3/gsap.min.js"></script>
2222
```
2323
Click the green "Get GSAP Now" button at <a href="https://greensock.com/?download=GSAP-JS">greensock.com</a> for more options and installation instructions, including CDN URLs for various plugins.
2424

dist/CSSRulePlugin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}(this, (function (exports) { 'use strict';
66

77
/*!
8-
* CSSRulePlugin 3.10.2
8+
* CSSRulePlugin 3.10.3
99
* https://greensock.com
1010
*
1111
* @license Copyright 2008-2022, GreenSock. All rights reserved.
@@ -51,7 +51,7 @@
5151
};
5252

5353
var CSSRulePlugin = {
54-
version: "3.10.2",
54+
version: "3.10.3",
5555
name: "cssRule",
5656
init: function init(target, value, tween, index, targets) {
5757
if (!_checkRegister() || typeof target.cssText === "undefined") {

dist/CSSRulePlugin.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/CSSRulePlugin.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/CustomEase.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
}
356356

357357
/*!
358-
* CustomEase 3.10.2
358+
* CustomEase 3.10.3
359359
* https://greensock.com
360360
*
361361
* @license Copyright 2008-2022, GreenSock. All rights reserved.
@@ -704,7 +704,7 @@
704704
return CustomEase;
705705
}();
706706
_getGSAP() && gsap.registerPlugin(CustomEase);
707-
CustomEase.version = "3.10.2";
707+
CustomEase.version = "3.10.3";
708708

709709
exports.CustomEase = CustomEase;
710710
exports.default = CustomEase;

0 commit comments

Comments
 (0)