-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
setPolling(false) cannot turn off polling #2432
Comments
Thanks for the bug report, i've added suggested fix to #2459.
Does MutationObserver allow to detect when size of element is changed due to zoom or font style change? AFAIK it should be only for attribute or children modifications. |
MutationObserver can be used to detect inline style change, ex. the style attribute or setting of style via JavaScript. However style sheet changes and zoom will not be detected. So you are right, we shouldn't use it. |
CSS Element queries uses a event based approach for size change detection new ResizeSensor(jQuery('#myElement'), function() {
console.log('myelement has been resized');
}); It uses a invisible new element as an overlay on the desired target and utilize the "scroll" event on the overlay to trigger changes Could be a solution ... |
Perhaps the code mean
instead of
Since the latter one makes no sense at all.
What's more, probably we can use MutationObserver to replace the polling if supported
The text was updated successfully, but these errors were encountered: