All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.util.isFixedPosition.mjs.map Maven / Gradle / Ivy

{"version":3,"file":"isFixedPosition.mjs","names":["isFixedPosition","el","window","getComputedStyle","position","offsetParent"],"sources":["../../src/util/isFixedPosition.ts"],"sourcesContent":["export function isFixedPosition (el?: HTMLElement) {\n  while (el) {\n    if (window.getComputedStyle(el).position === 'fixed') {\n      return true\n    }\n    el = el.offsetParent as HTMLElement\n  }\n  return false\n}\n"],"mappings":"AAAA,OAAO,SAASA,eAAeA,CAAEC,EAAgB,EAAE;EACjD,OAAOA,EAAE,EAAE;IACT,IAAIC,MAAM,CAACC,gBAAgB,CAACF,EAAE,CAAC,CAACG,QAAQ,KAAK,OAAO,EAAE;MACpD,OAAO,IAAI;IACb;IACAH,EAAE,GAAGA,EAAE,CAACI,YAA2B;EACrC;EACA,OAAO,KAAK;AACd","ignoreList":[]}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy