Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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