Skip to content

Commit

Permalink
3.10.3
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
jackdoyle committed Apr 12, 2022
1 parent e7fc9b7 commit 0ce3461
Show file tree
Hide file tree
Showing 78 changed files with 1,058 additions and 505 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ View the <a href="https://greensock.com/docs">full documentation here</a>, inclu

### CDN
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.2/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.3/gsap.min.js"></script>
```
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.

Expand Down
4 changes: 2 additions & 2 deletions dist/CSSRulePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}(this, (function (exports) { 'use strict';

/*!
* CSSRulePlugin 3.10.2
* CSSRulePlugin 3.10.3
* https://greensock.com
*
* @license Copyright 2008-2022, GreenSock. All rights reserved.
Expand Down Expand Up @@ -51,7 +51,7 @@
};

var CSSRulePlugin = {
version: "3.10.2",
version: "3.10.3",
name: "cssRule",
init: function init(target, value, tween, index, targets) {
if (!_checkRegister() || typeof target.cssText === "undefined") {
Expand Down
4 changes: 2 additions & 2 deletions dist/CSSRulePlugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/CSSRulePlugin.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/CustomEase.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
}

/*!
* CustomEase 3.10.2
* CustomEase 3.10.3
* https://greensock.com
*
* @license Copyright 2008-2022, GreenSock. All rights reserved.
Expand Down Expand Up @@ -704,7 +704,7 @@
return CustomEase;
}();
_getGSAP() && gsap.registerPlugin(CustomEase);
CustomEase.version = "3.10.2";
CustomEase.version = "3.10.3";

exports.CustomEase = CustomEase;
exports.default = CustomEase;
Expand Down
Loading

0 comments on commit 0ce3461

Please sign in to comment.