-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V5.0.0 #1205
V5.0.0 #1205
Conversation
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
New features
ResizeObserver
to all non-static elements to better detect CSS:hover
, CSS Animation,<textarea/>
user resizing events and remove the need for user interaction event listenersoffsetHeight
&offsetWidth
options to adjust values returned from iframebodyBoundingClientRect
anddocumentElementBoundingClientRect
size calculation methodslowestDivElement
size calculation methodpostMessageTarget
option to better support GAS iframesChanges
documentElementBoundingClientRect
getPageInfo()
to match modern DOM namesscrollLeft -> scrollX
andscrollTop -> scrollY
onInit()
->onReady()
, and added deprecation warninggetPageInfo()
bodyOffset
, usebodyOffsetMargin
for old behaviourgrow
height calculation methodmouse
,touch
andresize
event listeners, as not required alongsideResizeObserver
Fixes
lowestElement
to exclude non-visible elements (head
,meta
,base
,title
,script
,link
,style
,map
,area
,option
,optgroup
,template
,track
,wbr
,nobr
) and then check remaining elements usingelement.checkVisibility()
Math.ceil()
to round up sub-pixel heightsmin < max
if both are defined as numbersChore
Todo
trottle()
to useRAF
instead ofsetTimeout(16)
EventListener()
methods