Skip to content

Releases: juggle/resize-observer

v3.4.0

18 Aug 19:32
fb44934
Compare
Choose a tag to compare

Aligns polyfill with spec changes.

Initial value of lastReportedSize changed from 0, 0 to -1, -1 allowing for consistent notifications to be triggered when an element is observed for the first time.

const el = document.createElement('div');
const ro = new ResizeObserver(() => { ... });
ro.observe(el); // Will now notify with size `0, 0`.

w3c/csswg-drafts#3664 (comment)

v4.0.0-4

01 Aug 20:40
71ecfde
Compare
Choose a tag to compare
v4.0.0-4 Pre-release
Pre-release
  • Removes memory leak potential
  • Adds back capture phase for events

v4.0.0-3

01 Aug 15:07
3544cea
Compare
Choose a tag to compare
v4.0.0-3 Pre-release
Pre-release
  • Improves event detection in nested documents
  • Adds export map

v4.0.0-2

31 Jul 14:59
e3f13f3
Compare
Choose a tag to compare
v4.0.0-2 Pre-release
Pre-release
  • Rollup both ESM and UMD bundles

v4.0.0-1

31 Jul 13:52
365a6bd
Compare
Choose a tag to compare
v4.0.0-1 Pre-release
Pre-release
  • Initial support for Shadow DOM and other documents
  • Add touch events
  • Fixes UMD build - Thanks @trusktr!

v3.3.1

28 Apr 12:39
dc5b2b6
Compare
Choose a tag to compare
  • Fixes an issue where isElement sometimes returns false on elements within an iFrame. Thanks @JayaKrishnaNamburu!

v3.3.0

24 Feb 20:33
29167fd
Compare
Choose a tag to compare
  • Reports readonly ResizeObserverSize[] to the observer callback
  • Exposes ResizeObserverSize

v3.2.0

31 May 15:28
906e2bc
Compare
Choose a tag to compare
  • Fixes issue where calling disconnect would prevent the observer from being used to observe again (#104).
  • Uses time instead of frame counts to capture certain events.
  • Replaces Map with WeakMap

v3.1.3

03 Apr 16:24
637346d
Compare
Choose a tag to compare
  • Fixes issue with older versions of chromium.
    No notifications were fired due to differences in MutationObserver implementation.

Tested:
Chromium 45.0.2454.0 (64-bit)

v3.1.2

17 Mar 19:56
185cff1
Compare
Choose a tag to compare
  • Add missing device-pixel-content-box option to readme.