Skip to content

Releases: vutran/affixed

Housekeeping

24 Aug 04:21
Compare
Choose a tag to compare
  • Updated and removed unnecessary dependencies
  • Replaced lodash for lodash.throttle

Events

01 Apr 17:13
Compare
Choose a tag to compare

New events are added affixed and unaffixed. See sample usage below:

menu.on('affixed', () => {
  console.log('Menu is affixed.');
});

menu.on('unaffixed', () => {
  console.log('Menu is unaffixed.');
});

Added Mirror Positioning

01 Apr 17:12
Compare
Choose a tag to compare

When position are set to mirror, the element is cloned and appended to the <body/>. This mirror element will act as the fixed position element in place for the original element. This is more performant than absolute where necessary.

Added Throttling

01 Apr 13:46
Compare
Choose a tag to compare

Replaced rAF with lodash throttling